Mapkey Toggle Representation of a part (Exclude / Include part from Rep.)
Hi guys, I'm continuing my work to turn some of my mapkeys into a toggle (on / off) (Previous mapkey : https://community.ptc.com/t5/Customization/Mapkey-Toggle-Grid-HIDE-Grid-SHOW-Grid/m-p/793262#M11178).
Today, I want to turn a mapkey, which exclude a part of an assembly from a representation, into a toggle where there is the possibility to include back the part.
Code to exclude the part :
mapkey ee @MAPKEY_LABELExclude the part from the representation;\
mapkey(continued) ~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\
mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;\
mapkey(continued) ~ Trail `MiniToolbar` `MiniToolbar` `UIT_TRANSLUCENT` `NEED_TO_CLOSE`;\
mapkey(continued) ~ Command `ProCmdViewExclude@PopupMenuGraphicWinStack`;
Nevertheless, I'm having trouble finding a way to create a mapkey which deactivate the exclusion for the part selected. I want the selected part to go from the status "Exclude" to "No specific status" but I can't find the way to make my mapkey to change the representation for the line that was selected.
I'm planning (if there is a solution for this problem) to make something similar to the previous mapkey to create the toggle.
Thanks in advance.
