Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Creating Map Keys

  • Thread starter Thread starter creo_user_2
  • Start date Start date
C

creo_user_2

Guest
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.
 

Part and Inventory Search

Sponsor

Back
Top