Inserting blocks with macro

Inserting blocks with macro

m_rogoff
Advocate Advocate
420 Views
2 Replies
Message 1 of 3

Inserting blocks with macro

m_rogoff
Advocate
Advocate

I am using a macro to draw a recctangle, convert it to a RevCloud, then insert a block "Delta". I need to insert "Delta" at the current dimscale. I have tried several different dimscale equations, but none seem to work (near the end of the macro, highlighted red).

 

Thanks in advance

 

 

^C^C_layer;m;S-REV\;-layer;c;1;;;Rectangle;\\;^C^Crevcloud;o;l;n;^C^C_layer;m;S-REVISION;c;5;;_-insert;delta;_scale;$M=$(*,$(getvar,dimscale),1);\;;

 

$(getvar,DIMSCALE)

0 Likes
421 Views
2 Replies
Replies (2)
Message 2 of 3

Kent1Cooper
Consultant
Consultant

I haven't used Diesel enough to trouble-shoot that, but [unless you're using LT] you can include certain AutoLISP expressions in macros.  Try:

 

...  _-inse​rt;delta;_scale;(getvar 'dimscale);\;;

 

Is the delta Block one that's defined for only uniform scaling?  If not, you'll need another semicolon at the end for [assuming you want] the default 0 rotation.

 

I also wonder about the backslash after the Layer name near the beginning....  Is that supposed to be another semicolon/Enter, with two of them completing one Layer command, and then another Layer command following?  You can make the Layer and set its color all within one Layer command:

_layer;m;S-REV;c;1;;;

Kent Cooper, AIA
0 Likes
Message 3 of 3

hmsilva
Mentor
Mentor

Hi m_rogoff,

 

any of the following macros should work as expected

 

^C^C_layer;m;S-REV;c;1;;;Rectangle;\\revcloud;_O;_L;n;^C^C_layer;m;S-REVISION;c;5;;;-insert;delta;_scale;$M=$(*,$(getvar,dimscale),1);\;

 or

^C^C_layer;m;S-REV;c;1;;;Rectangle;\\revcloud;_O;_L;n;^C^C_layer;m;S-REVISION;c;5;;;-insert;delta;_scale;$M=$(getvar,dimscale);\;

 

Hope this helps,
Henrique

EESignature

0 Likes