Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Creating Map Keys

creo_user_2

New member
I have 2 map keys right now.
1st map key is (xm) this map key creates 3 files of the model (.pvz, .stp.sat)
2nd map key is (acw) this map key creates a pdf print of the drawing.
Is there a script i can write that will automatically create the drawing in the model screeen and automatically attach the 3 model files created. basically join the 2 map keys i have right now into one but could all be done in either the drawing file or model file. If so what would that script look like?
Thanks for your help
 
I have 2 map keys right now.
1st map key is (xm) this map key creates 3 files of the model (.pvz, .stp.sat)
2nd map key is (acw) this map key creates a pdf print of the drawing.
Is there a script i can write that will automatically create the drawing in the model screeen and automatically attach the 3 model files created. basically join the 2 map keys i have right now into one but could all be done in either the drawing file or model file. If so what would that script look like?
Thanks for your help

With the drawing file open you could run a mapkey which would look like this

mapkey r1 @MAPKEY_NAMEexports pdf in drw and pvz stp sat in prt;\
mapkey(continued) @MAPKEY_LABELexports pdf in drw and pvz stp sat in prt;\
mapkey(continued) %acw;%open_model;\
mapkey(continued) %xm;

mapkey open_model @MAPKEY_NAMEOpen drawing model;\
mapkey(continued) @MAPKEY_LABELOpen model at top of model tree;\
mapkey(continued) ~ Command `ProCmdModelOpen` ;\
mapkey(continued) ~ Activate `file_open` `Inputname`;\
mapkey(continued) ~ Activate `open_instance` `instnamelist1` 1 `the generic`;

This may not select the correct family table instance if you have family table parts.
 

Sponsor

Articles From 3DCAD World

Back
Top