Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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.