Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
When I do a "Replace" in an assembly, the dialog box default is set to "Reference Model".
I almost always use "Unrelated Component".
Is there a way I can change the default setting?
I did a quick search and was unable to find an option to control the default behavior of the replace command. Maybe a mapkey would get you what you want. Here are a few that we use:
There is a config option that controls the auto-pairing functionality. We don't have it on by default. Hence the two mapkeys. replace_unrelated_automatic yes,no*
!!!REPLACE BY UNRELATED, AUTO PAIR REFERENCES
mapkey UNRA @MAPKEY_LABELREPLACE BY UNRELATED, AUTO EVALUATE REF TABLE;\
mapkey(continued) ~ Command `ProCmdReplace` ;\
mapkey(continued) ~ Select `gen_repl_dlg` `ByCompPH.rpl_method_radio` 1 `Unrelated Component`;\
mapkey(continued) ~ Activate `gen_repl_dlg` `PB_NewComp`;\
mapkey(continued) ~ `file_open`;\
mapkey(continued) @MANUAL_PAUSESELECT NEW COMPONENT;\
mapkey(continued) ~ Command `ProFileSelPushOpen_Standard@context_dlg_open_cmd` ;\
mapkey(continued) ~ Activate `gen_repl_dlg` `ByCompPH.PB_UnrelEditRefTags`;\
mapkey(continued) ~ Activate `refpair_repl_dlg` `PB_Evaluate`;\
mapkey(continued) ~ Activate `refpair_repl_dlg` `PB_OK`;\
mapkey(continued) ~ Activate `gen_repl_dlg` `DoneBtn`;
!!!REPLACE BY UNRELATED, MANUALLY PAIR REFERENCES
mapkey UNRM @MAPKEY_LABELREPLACE BY UNRELATED, MANUALLY EVALUATE REF TABLE;\
mapkey(continued) ~ Command `ProCmdReplace` ;\
mapkey(continued) ~ Select `gen_repl_dlg` `ByCompPH.rpl_method_radio` 1 `Unrelated Component`;\
mapkey(continued) ~ Activate `gen_repl_dlg` `PB_NewComp`;\
mapkey(continued) ~ `file_open`;\
mapkey(continued) @MANUAL_PAUSESELECT NEW COMPONENT;\
mapkey(continued) ~ Command `ProFileSelPushOpen_Standard@context_dlg_open_cmd` ;\
mapkey(continued) ~ Activate `gen_repl_dlg` `ByCompPH.PB_UnrelEditRefTags`;\
mapkey(continued) @MANUAL_PAUSESELECT REFERENCES TO PAIR;\
mapkey(continued) ~ Activate `refpair_repl_dlg` `PB_OK`;\
mapkey(continued) ~ Activate `gen_repl_dlg` `DoneBtn`;
!!!REPLACE COMPONENT BY COPY
mapkey RBC @MAPKEY_LABELREPLACE COMPONENT BY COPY;\
mapkey(continued) ~ Command `ProCmdReplComp@PopupMenuTree` ;\
mapkey(continued) ~ Select `gen_repl_dlg` `ByCompPH.rpl_method_radio` 1 `By Copy`;\
mapkey(continued) ~ Activate `gen_repl_dlg` `DoneBtn`;
Ty
Ok... very good!
Thanks for all your help today!!!
Thank you very much, these mapkeys are fine!
For evaluate the table there are some config options that I didn't know...
replace_sameid_rule_order
replace_interface_rule_order
replace_history_rule_order
replace_sameparam_rule_order
replace_samename_rule_order
I notice you have the "Remember These Components" option checked.
This will keep a reference to the old component (the one that was replaced).
Not sure why one would want that reference to remain, so I use this config.pro option to prevent such unwanted dependencies.
remember_replaced_components no
That is very important! Good catch.
It makes a reference that is used for interchangeable components that you want to continue to be interchangeable in the future. The specific case I have used is for simplified parts and complicated assembly. I can swap the components easily without going thru the reference selection process.
I would say that 99% of the time, users are making a 1 time change out and don't want to keep those references!
my guess is that PTC has this coded into the software and we cannot change this. This setting changes depending on the model you are replacing. If the model is a is part of a family table the default will not be, reference model it will be, family table.