Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameter Info Files 1

Status
Not open for further replies.

prohammy

Mechanical
May 28, 2003
352
Today seems to be another one of those days where things are bugging me far too easily.... If someone can solve this one it is going to save me a lot of donkey work.....

The company I am working for at the moment have a lot of legacy parts that were created before they adopted 'start parts'. Consequently there are a lot of parts/assemblies that have blank parameter info.

I was wondering if there was any way of copying info from a file that has the info embedded (due to start part) to the blank parameter legacy files. I realise that you can export the info to a .inf (that you can open in Notepad) but I can't find a way to import it back into the blank file.

Cheers


Kevin Hammond

Mechanical Design Engineer
Derbyshire, UK
 
Replies continue below

Recommended for you

You can configure ModelCheck to add missing parameters.

"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
Sr IS Technologist
L-3 Communications
 
Ben,

Nice solution, but guess what, they don't run Modelcheck here

[ponder]


Kevin Hammond

Mechanical Design Engineer
Derbyshire, UK
 
Hora,

That seems to be the answer

Kevin Hammond

Mechanical Design Engineer
Derbyshire, UK
 
Another approach I've seen is to create a dummy assembly. Assemble all of the parts/assemblies to the dummy assembly.

Then in your model tree, add columns for each of your model parameters. You'll see that some parts/assemblies don't have values for these parameters. You can then click and add the parameter values in the model tree.

Then save and you're done.
<tg>
 
Create a relations.txt file with all your parameters defined to default values:

DESCRIPTION="TBD"
YEAR_OF_CREATION=2007

And so on for all your parameters. Now go to tools/relations and do a file/import relations. Select your relations.txt file. I always need to add a carriage return at the end of the relations window for some reason to get Pro/E to take it.(?) This will add all the parameters to your part but now you can't change them from the tools/parameters window because they are controlled by relations. So go back to tools/relations and delete them all. Now you have parameters in your model just like from a start part.
 
I put a faq up on this awhile back, but here is update and mapkey.

format of file to read in for parameters;

my_ans=yes come in as yes/no
my_str="string" string
my_val=5 real number

mapkey writes out current relations to a temp file then reads in additional parms from a text file at a certain location <line 12> which you can set to your desire; note the double slashes

mapkey(continued) ~ Update `file_open` `Inputname` `c:\\pro_inf\\load_inf.txt`;\

it then verifys and deletes itself so the parms won't be locked and then reads in the temp file of the last relations

So you can clone away and have different sets to read in by changing the mapkey name to say ri2,ri3,... and the path name on line 12.

not sure how much web format will change, but cut and paste into a new config ...see if it flys...

or you can use the parameter editor and have to set paramter type etc..... ...wf2 se key



mapkey ri1 ~ Select `main_dlg_cur` `MenuBar1`1 `Utilities`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;~ Close `main_dlg_cur` `Utilities`;\
mapkey(continued) ~ Activate `main_dlg_cur` `Utilities.psh_rels`;\
mapkey(continued) ~ Select `relation_dlg` `MenuBar1`1 `File`;\
mapkey(continued) ~ Close `relation_dlg` `MenuBar1`;~ Activate `relation_dlg` `PBExport`;\
mapkey(continued) ~ FocusIn `relation_dlg` `RelText`;\
mapkey(continued) ~ Update `file_open` `Inputname` `temprels.txt`;\
mapkey(continued) ~ Activate `file_open` `Open`;~ FocusIn `relation_dlg` `RelText`;\
mapkey(continued) ~ Select `relation_dlg` `MenuBar1`1 `File`;\
mapkey(continued) ~ Close `relation_dlg` `MenuBar1`;~ Activate `relation_dlg` `PBRead`;\
mapkey(continued) ~ FocusIn `relation_dlg` `RelText`;\
mapkey(continued) ~ Update `file_open` `Inputname` `c:\\pro_inf\\load_inf.txt`;\
mapkey(continued) ~ Activate `file_open` `Open`;~ FocusIn `relation_dlg` `RelText`;\
mapkey(continued) ~ Activate `relation_dlg` `TBVerify`;~ FocusIn `UI Message Dialog` `ok`;\
mapkey(continued) ~ Activate `UI Message Dialog` `ok`;~ FocusIn `relation_dlg` `RelText`;\
mapkey(continued) ~ Activate `relation_dlg` `PB_OK`;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `Utilities`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;~ Close `main_dlg_cur` `Utilities`;\
mapkey(continued) ~ Activate `main_dlg_cur` `Utilities.psh_rels`;\
mapkey(continued) ~ Select `relation_dlg` `MenuBar1`1 `Edit`;\
mapkey(continued) ~ Close `relation_dlg` `MenuBar1`;~ Activate `relation_dlg` `PBSelectAll`;\
mapkey(continued) ~ FocusIn `relation_dlg` `RelText`;\
mapkey(continued) ~ Select `relation_dlg` `MenuBar1`1 `Edit`;\
mapkey(continued) ~ Close `relation_dlg` `MenuBar1`;~ Activate `relation_dlg` `PBDelete`;\
mapkey(continued) ~ FocusIn `relation_dlg` `RelText`;~ Update `relation_dlg` `RelText` ``;\
mapkey(continued) ~ Activate `relation_dlg` `TBVerify`;~ FocusIn `UI Message Dialog` `ok`;\
mapkey(continued) ~ Activate `UI Message Dialog` `ok`;~ FocusIn `relation_dlg` `RelText`;\
mapkey(continued) ~ Select `relation_dlg` `MenuBar1`1 `File`;\
mapkey(continued) ~ Close `relation_dlg` `MenuBar1`;~ Activate `relation_dlg` `PBRead`;\
mapkey(continued) ~ FocusIn `relation_dlg` `RelText`;\
mapkey(continued) ~ Select `file_open` `Ph_list.List_table`1 `temprels.txt`;\
mapkey(continued) ~ Activate `file_open` `Ph_list.List_table`1 `temprels.txt`;\
mapkey(continued) ~ FocusIn `relation_dlg` `RelText`;~ Activate `relation_dlg` `TBVerify`;\
mapkey(continued) ~ FocusIn `UI Message Dialog` `ok`;~ Activate `UI Message Dialog` `ok`;\
mapkey(continued) ~ FocusIn `relation_dlg` `RelText`;~ Activate `relation_dlg` `PB_OK`;

 
CADCAMGUY

I am not much of an administrator of this type when I use pro/E, however I think your solution is what I need.

I have copied your mapkey to my config file and then run it and it did not work. I am curious about this statement in your reply and would like further detailed information as a rookie trying to understand and accomplish this.

format of file to read in for parameters;

my_ans=yes come in as yes/no
my_str="string" string
my_val=5 real number


What do I do with this information?

Norb
 
cadcamguy

I understand now what your trying to accomplish with this mapkey. I have cut and paste the mapkey in to my config and I tried running it with success once. Now three days later I try again and it does not run and the options undertools its got the redslashed circle in it. Not sure why. I would appreciate any ideas if you have them.

Norb
 
Norb,
Not sure why, I just ran it a minute ago. I keep it in a seperate .pro file and just load it when I need it.

Have you added any other mapkeys since the last time you ran it?
I tend to keep my config.pro file as read only and then add new keys in myself in notepad, then lock it back down. I think it was rev20 jumbled my config all up and have chosen to manage it myself since.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor