Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Insert Block Exploded

10 REPLIES 10
Reply
Message 1 of 11
Anonymous
494 Views, 10 Replies

Insert Block Exploded

Ok, I've never noticed this before but it's cause a few problems now.
If I use (command "-Insert" "*blockname" '(0 0) "" "") to insert a block
exploded then the next time I use the insert dialog box the explode box is
checked.
How do I reset this in my routine?
10 REPLIES 10
Message 2 of 11
Anonymous
in reply to: Anonymous

(vl-registry-write
(strcat
"HKEY_CURRENT_USER\\"
(vlax-product-key)
"\\Profiles\\"
(getvar "cprofile")
"\\Dialogs\\insert_dialog"
)
"Explode"
0
)

"Jason Rhymes" wrote in message
news:5995719@discussion.autodesk.com...
Ok, I've never noticed this before but it's cause a few problems now.
If I use (command "-Insert" "*blockname" '(0 0) "" "") to insert a block
exploded then the next time I use the insert dialog box the explode box is
checked.
How do I reset this in my routine?
Message 3 of 11
Anonymous
in reply to: Anonymous

Thanks Jason
Should of known it wouldn't be pretty.
Would it be better and is there a way to use vl to insert the block exploded
or will I end up with the same problem.
...Or is there a way to insert > then explode > then select all the entities
that made up that block.
Message 4 of 11
Anonymous
in reply to: Anonymous

You could insert > explode > last > (ssget "p")

I'd probably just modify the registry. Write a simple
function to toggle that value and call it done.

"Jason Rhymes" wrote in message
news:5995811@discussion.autodesk.com...
Thanks Jason
Should of known it wouldn't be pretty.
Would it be better and is there a way to use vl to insert the block exploded
or will I end up with the same problem.
...Or is there a way to insert > then explode > then select all the entities
that made up that block.
Message 5 of 11
Anonymous
in reply to: Anonymous

I may have to do that. The VL function is changing the registry but the
insert dialog still comes up with explode checked.
May be a Vista thing

This is what I have:

(initdia)
(command "._insert" '(0 0) "" "")
(while (> (getvar "cmdactive") 0)
(command pause)
)
(setvar "cmdecho" 0)
(setq Ent (entget (entlast)))
(entdel (entlast))
(setq bname (cdr (assoc 2 Ent))
)
(if bname
(command "-Insert" (strcat "*" bname) '(0 0) "" ""))
(setq c1 (entlast))

--

Jason Rhymes
3D Solid Power Toys
including Multi Solid Stretch
http://www.acadianagraphics.com



"Jason Piercey" wrote in message
news:5995802@discussion.autodesk.com...
You could insert > explode > last > (ssget "p")

I'd probably just modify the registry. Write a simple
function to toggle that value and call it done.

"Jason Rhymes" wrote in message
news:5995811@discussion.autodesk.com...
Thanks Jason
Should of known it wouldn't be pretty.
Would it be better and is there a way to use vl to insert the block exploded
or will I end up with the same problem.
...Or is there a way to insert > then explode > then select all the entities
that made up that block.
Message 6 of 11
Anonymous
in reply to: Anonymous

Must be. Seems to work fine in XP (using 2008 and 2009)

"Jason Rhymes" wrote in message
news:5995849@discussion.autodesk.com...
> The VL function is changing the registry but the insert dialog still
> comes up with explode checked. May be a Vista thing
Message 7 of 11
Anonymous
in reply to: Anonymous

When you change the registry it doesn't always change within the current Acad session, at least that is my experience.
Message 8 of 11
Anonymous
in reply to: Anonymous

It is strange. If I change it manually in the registry it works but if I use
vl-registry-write it doesn't do anything to the dialog.
Message 9 of 11
Anonymous
in reply to: Anonymous

Another thing you might try: After Inserting the Block exploded [and, if necessary as implied by
further posts, doing whatever with the pieces], Insert something (anything) *not* exploded, then
immediately Erase or (entdel) the Last entity. I would think that would uncheck the explode box.
--
Kent Cooper


"Jason Rhymes" wrote...
Ok, I've never noticed this before but it's cause a few problems now.
If I use (command "-Insert" "*blockname" '(0 0) "" "") to insert a block
exploded then the next time I use the insert dialog box the explode box is
checked.
How do I reset this in my routine?
Message 10 of 11
BillZ
in reply to: Anonymous

>>>the next time I use the insert dialog box the explode box is
checked.


Just ftr:

It doesn't do this in R2006 sp1.


Bill
Message 11 of 11
Anonymous
in reply to: Anonymous

Thanks Kent. That may work for me also.

--

Jason Rhymes
3D Solid Power Toys
including Multi Solid Stretch
http://www.acadianagraphics.com



"Kent Cooper" wrote in message
news:5996294@discussion.autodesk.com...
Another thing you might try: After Inserting the Block exploded [and, if
necessary as implied by
further posts, doing whatever with the pieces], Insert something (anything)
*not* exploded, then
immediately Erase or (entdel) the Last entity. I would think that would
uncheck the explode box.
--
Kent Cooper


"Jason Rhymes" wrote...
Ok, I've never noticed this before but it's cause a few problems now.
If I use (command "-Insert" "*blockname" '(0 0) "" "") to insert a block
exploded then the next time I use the insert dialog box the explode box is
checked.
How do I reset this in my routine?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost