Block not visible util inserted when explode option is checked

Block not visible util inserted when explode option is checked

mpa-la
Advocate Advocate
696 Views
3 Replies
Message 1 of 4

Block not visible util inserted when explode option is checked

mpa-la
Advocate
Advocate

Maybe I have never noticed this because 99% of the time I insert blocks, I don't have explode checked, but is there a setting to make the contents of the file you're inserting visible when you do have explode checked?  I tried it on all three computers in the office (all vanilla acad 2016) and in all cases, whatever I was inserting was invisible until I actually inserted it.  Annoying...

0 Likes
Accepted solutions (1)
697 Views
3 Replies
Replies (3)
Message 2 of 4

Kent1Cooper
Consultant
Consultant
Accepted solution

@mpa-la wrote:

... is there a setting to make the contents of the file you're inserting visible when you do have explode checked?  ....


I don't believe there is.  But you can use a dedicated command definition to Insert [with dragging, and all options, etc.] and then Explode what was just Inserted:

 

(defun C:IX (); = Insert & eXplode
  (initdia)
  (command "_.insert")
  (while (> (getvar 'cmdactive) 0) (command pause))
  (command "_.explode" "_last")
  (princ)
)

EDIT:  Needs to force the Explode option off first, in case -- let me work on that.... 

Kent Cooper, AIA
Message 3 of 4

Anonymous
Not applicable

Been that way since the beginning ... most are used to it.

Message 4 of 4

Kent1Cooper
Consultant
Consultant

@Kent1Cooper wrote:

EDIT:  Needs to force the Explode option off first, in case -- let me work on that.... 


Thanks for the accepted-solution marking, but I find if you have the Explode button set from before, the can't-see-it-as-you-Insert problem remains.  I haven't found a way to turn it off in a routine.  It doesn't seem to be stored in any System Variable that I can find.  If there's a way to invoke Alt+D in a routine while the dialog box is up, that would toggle the Explode button, but of course it would sometimes turn it on rather than off.

 

Does anyone know where/how that setting is stored, and therefore whether it can be forced off in AutoLisp or a command macro or something?  I tried some Searching, and didn't find anything.

 

The whole thing could be done with a macro, avoiding the problem, but then you lose other benefits of the dialog box, for example you'd have to type in [or build in -- maybe that's workable in your situation] the Block name, and couldn't pull down the list to pick it.

Kent Cooper, AIA
0 Likes