Block automatically explodes when inserted from Ribbon

Block automatically explodes when inserted from Ribbon

Lukey7
Participant Participant
2,234 Views
3 Replies
Message 1 of 4

Block automatically explodes when inserted from Ribbon

Lukey7
Participant
Participant

I am currently pulling together some custom ribbons, some of which will house tools to insert dynamic blocks. I can get the button to insert the block ok, but it is automatically exploding once the insert is accepted. Is there a way to prevent this from happening? 

 

So far I have changed the default variables INSNAME to default "." to turn of exploding the named block and have opened the classicinsert dialogue and turned the explode tick box off. I've also set the block being inserted to NOT allow exploding.... But to no avail. 

 

The Macro in the Panel Row I'm using is ^C^C(COMMAND "INSERT" "*D:/ACAD DEV/EDCM DRIVEWAY.dwg");\

 

lukeZR6RP_0-1613188656883.png

 

I'm somewhat new to customizing Ribbons so I may be missing something. I have already set up the Tool Palettes but we would like to use a 2 pronged attack with tool palettes and ribbons for specific workflows to maximise efficiency. Any help on this would be greatly appreciated. Thanks in advance.

 

0 Likes
Accepted solutions (2)
2,235 Views
3 Replies
Replies (3)
Message 2 of 4

Moshe-A
Mentor
Mentor
Accepted solution

@Lukey7  hi,

 

1. in ribbon you can use macro code to insert blocks instead of using lisp

example:  ^C^CINSERT "D:/ACAD DEV/EDCM DRIVEWAY"

you can drop the ".dwg" file type (cause insert knows to bring in only internal blocks or dwg files 😀)

 

2. drop the '*' prefix ... this denote insert to bring in the block exploded.

 

cheers

Moshe

 

Message 3 of 4

Lukey7
Participant
Participant
Accepted solution

Thank you very much. I thought it would be something obvious to someone more familiar with macros...

0 Likes
Message 4 of 4

Degonbellz
Contributor
Contributor

Degonbellz_0-1729014096084.png

 

0 Likes