Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Import user part parameter from external file ?

Status
Not open for further replies.

JBIM

Industrial
Nov 22, 2006
89
0
0
PT
Hi,

I would like to know if it is possible to Import user part parameter from external file?

I know that i can do copy paste from one file to another inside pro-e, but i can paste the data in a external txt file for further use.

Any sugestion?

thanks a lot

Wild-fire 4
 
Replies continue below

Recommended for you

You can export parameter information (Dialog File menu).
I don't know of a way to 'import parameter'.

A bit of contextual information would be helpful.
What, exactly, is the goal?

Would it be ...

(1) Create the same parameter symbolic names in parts
where they don't exist?

I believe(?) ModelCHECK can be used but the easiest
way I know of (and have actually done) is to use the
Model Tree Parameter columns in an assembly.
Assigning values will create the symbol.

You can also create the parameters by defining
Relations ...
new_string_param = "" /* or an actual value */
new_real_param = 0
new_int_param = 0
... copy / paste that in the target part Relations
dialog, Verify Relations (params will be created),
delete the relations (so you can assign values
manually) and Ok.

(2) Reference parameter VALUES of an external part?
Again within an assembly; you can reference external
parameter values with relations in the form
target_object_param = source_object_param:session_id

If you didn't search before posting; try it.

-Jeff Howard (wf2)
Sure it's true. I saw it on the internet.
 
Hi, the goal here is to be able to give to a part certain "user parameters" such as name of the drawn part in several language, or material, etc.. all at once.

I´m a former user of unigraphics and in ug i could create a txt file with all the parameter and paste them in ug just like we do now in pro-e (exept i pro-e i can only paste attribute from one to an other file)

thanks in advance
 
JBIM,

Write a mapkey to create one user parameter and then edit the resulting text file to include all your parameters. Now write a mapkey which calls the text file.

--
Fighter Pilot
Manufacturing Engineer
 
You could do something along the lines of creating your parameters first in the part, then in Pro/Program insert between the 'input' fields your parameters and whatever type they require as an input, eg STRING if it needs a string of text or NUMBER if it needs a numerical value.

Then when you regenerate the model, it will ask you where to get the values from for these specified 'inputs'...

Your choices are either:

'current values' which will mean it remains unchanged

'enter' which will present you with a list of the parameters for you to pick which you want to edit then you can edit them directly in the command line in pro/e

'from file' which will ask you for the location of a text file in which are the parameters... this text file needs to be in the format:

parameter_name_1 = whatever
parameter_name_2 = foo
parameter_name_3 = bar

etc...

You could work something along these lines.

HTH

Regards,

Jon Reynolds
 
Status
Not open for further replies.
Back
Top