cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Automate draft entities selection using Map key script ?

arajenderan
1-Newbie

Automate draft entities selection using Map key script ?

Task: import CGM file into creo drawing. But draft entities are in black color. Need to change

The color manually and convert as a symbol. Need to repeat all the process for every import CGM’s


I have developed Macro for the process. I need to select draft entities for changing color and creating symbols

But I was not able to automate the selection of entities on the macro program.


Is there any way to select the draft entitles by automatically using map key script. (Like xy co ordinate window selection).


mapkey(continued) ~ Command `ProCmdDwgModLineStyle`

mapkey(continued) @MANUAL_PAUSE Window Select CGM Entities then ---Resume;\

mapkey(continued) ~ Activate `GET SELECT` `done_sel`;\

mapkey(continued) ~ Activate `ls_mod_dial` `psh_set_color`;\

mapkey(continued) ~ Activate `coldial` `sys0` 1;~ Activate `coldial` `Ok`;\

mapkey(continued) ~ Activate `ls_mod_dial` `std_apply`;~ Activate `ls_mod_dial` `std_close`;\

mapkey(continued) #DONE/RETURN;\

In that map key i made a pause to select the draft entities manually.

test.JPG


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
0 REPLIES 0
Top Tags