• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

macro per tipolinea

  • Thread starter Thread starter jim78b
  • Start date Start date

jim78b

Guest
I made a macro to draw a zig zag line on a certain layer, the problem is that I don't know finished the line command as to say to return to the layer "0" and set the dabloc color.

^c^c_clayer am_4;
^c^c_color bylayer;
^c^c_linetype;
; ;

Thank you.
 
If you use mechanical, it's something you do automatically.
from any layer you leave the zigzagline draws it on its skill layer as set in the model settings
 
but the problem you mention (This is I suppose) is only visual, it does not affect the creation of new entities on other styles of line.
to understand: if before drawing the zigzxzagline you are on the axis layer with dabloc color and line center style tracking the zigzagline this is created with the settings set in the model and closed the command you find on the axis layer with dabloc color and line center style even if you see on the monitor still the zigzag line style

but launching a macro to make a single line seems excessive. track a normal line and pierce the line style by selecting it from the list, or you create an already beautifully set layer and use it to make your beads and assign it the specific layer
 
I don't understand why it should work before the pline you and after the pline np.
in all cases you can try so
^c^c_setvar "cecolor" "0";
^c^c_setvar "clayer" "0";
 
ok thanks cmq I noticed that my listing is wrong does not work .poi does not allow to make a polyline in the sense that you can only make 1 segment then truncates it there.
 
^c^c_clayer am_4;^c^c_color bylayer;
^c^c-linetype;s amzigzag;;
^c^c_pline;\\;layerp;

^c^c_clayer 0;^c^c_color byblock;^c^c-linetype;s bylayer;;

posto l'ultima versione .funziona ma solo per fare 1 linea e non 1 polilinea.
 
question the entity and see that it is a polyline.
has given only 2 slash (^c^c_pline;\\;layerp;) so you can only insert 2 points

is a polyline ache starts and ends, simply
 
ok works what I do 3 consecutive lines thanks a thousand. last thing if I repeat command at the end does not repeat the macro but only charge line.How can I make it repeat the macro or the button associated with its list without having to go with the pointer to recheck it? Thank you.
 
ok works what I do 3 consecutive lines thanks a thousand. last thing if I repeat command at the end does not repeat the macro but only charge line.How can I make it repeat the macro or the button associated with its list without having to go with the pointer to recheck it? Thank you.
"You can use an initial asterisk (*) to indicate that the command of a macro must be repeated until you press esc or start another macro that begins with ^c."
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
ciao
Back
Top