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

macro inserting blocks with variables

  • Thread starter Thread starter polloth
  • Start date Start date

polloth

Guest
Good morning,
I'll explain what I want to do:

create a button for automatic insertion of a block with a preset scale.

the macro I'm trying is as follows: ^c^c-inser nameblock \1; \
with this I can insert a block having scale 1 and rotate it to my liking.

the next step (which I can't do) is to set a scale (userr5=2) and be able to recall it in the macro (instead of scale 1).

Can you help me?
 
Good morning,
I'll explain what I want to do:

create a button for automatic insertion of a block with a preset scale.

the macro I'm trying is as follows: ^c^c-inser nameblock \1; \
with this I can insert a block having scale 1 and rotate it to my liking.

the next step (which I can't do) is to set a scale (userr5=2) and be able to recall it in the macro (instead of scale 1).

Can you help me?
in place of 1 use : (getvar"userr5")
 
in place of 1 use : (getvar"userr5")
Good evening,
I open the topic after a long time because unfortunately I lost the macro that I had done in its time and I am no longer able to recreate it.

At the moment I wrote this:

^c^c-inser nomeblocco \(getvar"userr5"); ♪

but it gives me problems in the scale of the block, which should take the value of userr5 (from me preset), but written so it requires me to insert the keyboard.

Can you help me?

Thank you.
 
Good evening,
I open the topic after a long time because unfortunately I lost the macro that I had done in its time and I am no longer able to recreate it.

At the moment I wrote this:

^c^c-inser nomeblocco \(getvar"userr5"); ♪

but it gives me problems in the scale of the block, which should take the value of userr5 (from me preset), but written so it requires me to insert the keyboard.

Can you help me?

Thank you.
I add that use autocad 2015 lt, I would not want the management of variables (getvar) to be not possible with lt.

I look forward to reply
Thank you.
 
I add that use autocad 2015 lt, I would not want the management of variables (getvar) to be not possible with lt.

I look forward to reply
Thank you.
Yes, with autocad lt it is not possible to use autolisp. Fortunately there is diesel.. .
try this:

$m=-inser nameblock \$(getvar,userr5); ♪
 

Forum statistics

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

Members online

No members online now.
Back
Top