Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need help with Macro.

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
roman934ik
362 Views, 2 Replies

Need help with Macro.

Trying to do macro that add segment label and explode it twice.

This part works perfect:
^C^C_ADDSEGMENTLABEL;\^C^C_PSELECT;L;;^C^C_EXPLODE
but when i trying select last and explode again nothing happens

This is how i think it should work:

^C^C_ADDSEGMENTLABEL;\^C^C_PSELECT;L;;^C^C_EXPLODE^C^C_PSELECT;L;;^C^C_EXPLODE

can't find problem

Also I want to run macro again when finished.

If u can write in lisp it will be nice too. I have no experience with this, cant do it by myself.

Tags (1)
2 REPLIES 2
Message 2 of 3
Jeff_M
in reply to: roman934ik

This macro works:

^C^C_ADDSEGMENTLABEL;\^C^C_PSELECT;L;;^C^C_EXPLODE;L;EXPLODE;L;

 

So does this:

^C^C_ADDSEGMENTLABEL;\^C^C_EXPLODE;L;EXPLODE;L;

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 3
JohnC_ISM
in reply to: Jeff_M

jeff, 

 

if i wanted to add to this changing the layer and the color would this work? 

 

^C^C_ADDSEGMENTLABEL;\^C^C_EXPLODE;L;EXPLODE;L;\^C^C_CHANGE;L;P;LA;Etext;CO;BYLAYER;

 

being the bold/italic is not in the options but what its asking you want to change it to? 

 

EDIT: nevermind i tinkered with it and finally got it. 

 

^C^C_ADDSEGMENTLABEL;\^C^C_EXPLODE;L;EXPLODE;L;_chprop;L;;LA;desiredlayer;CO;desiredcolorOrBYLAYER;;

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report