Macro to insert a block

Macro to insert a block

giovine
Explorer Explorer
386 Views
1 Reply
Message 1 of 2

Macro to insert a block

giovine
Explorer
Explorer

Good morning to all!

in first sorry for my English and second thing, I hope to write in the right section...
I'm trying to write a code to insert a dynamic block from menù bar, with uniform scale 1 and rotation angle 0...

but when I use ^c^c-inser it put on a drawing a block of a block, and so I need to insert a dynamic block and explode it.
this is the chain....

insert ---> "block.dwg" --->uniform scale 1, angle rotation 0 ---> explode it

thank to all for attention!

0 Likes
387 Views
1 Reply
Reply (1)
Message 2 of 2

Ed__Jobe
Mentor
Mentor

What is the macro that you are using? You should just record your entries to the "-INSERT" command and that should work. Notice I'm using the command line version with the dash in front. You can input the insertion point in your macro or use the macro "pause" argument to allow the user to pick an insertion point.

 

What is your first language?

 

Another way to avoid using a button macro is to drag your block onto a custom palette and it will have all the properties of the block. You can then drag it from your palette to wherever you want.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes