Skip to main content
1-Visitor
September 27, 2018
Question

MAp key to create a rep

  • September 27, 2018
  • 1 reply
  • 1410 views

Hi all,

I trying to create a Mapkey whose final output should be a new rep.

 

I have create Mapkey which will run on a assembly and select some components based on criteria, now I want to  save the selected components in a separate rev and I want to cover this in the same Mapkey.

 

is it possible to create Mapkey to create a rep?

 

can someone guide me on this?

 

thanks in advance

This topic has been closed for replies.

1 reply

23-Emerald IV
September 27, 2018

This is my "new rep" mapkey.  It creates a new rep on the fly but it doesn't save it.  You would still need to record that action if you want to save the newly created rep.  (In our case we don't.  They're just temporary.)

mapkey nr @MAPKEY_NAMECreate New Rep;@MAPKEY_LABELNew Rep;\
mapkey(continued) ~ Command `ProCmdViewNormalMaster`;\
mapkey(continued) ~ Command `ProCmdViewInclude`;

Here is another mapkey to discard the temporary rep and return to master.

mapkey mr @MAPKEY_NAMEActivate Master Rep;@MAPKEY_LABELMaster Rep;\
mapkey(continued) ~ Command `ProCmdViewVisTool` ;\
mapkey(continued) ~ Select `visual_dlg0` `RadioSelApplMgr`1 `simplified rep`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table`2 `master rep` `name_column`;\
mapkey(continued) ~ Activate `visual_dlg0` `CloseBtn`;