cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Read parameter values from external file?

lococnc
1-Newbie

Read parameter values from external file?

Is there a way to read an external file with parameter value
information into a model?

What I am looking for is a way for a user to set a series of parameter
values to one or more "configurations" by reading and setting
parameter values.
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
4 REPLIES 4

Hi Michael,

There are two ways that I have used.

1) Layout

Add parameters to your layout and refer to them in the assembly

and they will drive your assembly.

2) Family Tables

I prefer Family Tables. In your Family Table, instead of "yes", "no"

for whether or not you need that subassembly, you can enter an instance
name.

This allows for multiple configurations in the same model.

I built a top level helicopter that way before.

Sometimes we wanted to see the rotor blades drooped, sometimes straight.

Sometimes we wanted to what height the vehicle sat while fully loaded,
shipping, etc...

You need to play with it to get the hang of it, but it is all pretty
intuitive.

Best regards,

Frederick Burke

You can use Modelcheck to do this. Hopefully someone out there can give you a good tutorial but bottom line is it can be done but I am no expert I have just done this one time in the last few years and it worked well. If you do a search on this in the forum archives under my name there should be a summary with a step by step of what I used to make it work. I will search quickly and if I find it I will send it to you.

Ron

You can do it with mapkeys.

1. record a mapkey as you are editing all of the parameters. This can also be used in conjunction with a Layout.
2. Write a program using your favorite programming language that switches the parameter values out with values in a file or entered in a Graphical Interface.
3. read the new mapkey in and run it.

You can combine some of these functions into one mapkay which will make it work really nice when you are done. The Programming is very simple - even I can do it. I used WinBatch. It is very user friendly - I learned it in just one weekend. You don't have to know the whole language to do what you need to do.

Good Luck!!

John Dunham
Staff Design\Thermal Engineer

LSI Corporation
3718 N. Rock Road
Wichita, KS 67226
P# 316.636.8869
F# 316.636.8839

A file has been sent to you via the YouSendIt <">http://www.yousendit.com>
File Delivery Service.
Please copy the following link to your browser to download the file -
10-01-2011 19-24-34.zip :
Top Tags