Author Topic: Suppress alert box when dynamic block is exploded  (Read 1426 times)

0 Members and 1 Guest are viewing this topic.

clarkrj

  • Guest
Suppress alert box when dynamic block is exploded
« on: January 06, 2011, 11:05:34 AM »
I am using dynamic blocks to create 3d geometry by inserting the dynamic block, manipulating the parameters, exploding the block, and the manipulating the resulting geometry.


I have everything working but when I explode the dynamic block block an alert box is displayed telling me parameters have been deleted.


Is there a way to suppress this alert box?  Expert does not cover this box.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Suppress alert box when dynamic block is exploded
« Reply #1 on: January 06, 2011, 11:25:25 AM »
First, welcome to theSwamp.

When I explode a dynamic block, I don't get any alert box.  That is in '09.

But you can explode the block using ActiveX methods.
Code: [Select]
(vl-load-com)
(setq Sel (entsel "\n Select dynamic block: "))
(setq Obj (vlax-ename->vla-object (car Sel)))
(vla-Explode Obj) ;or (vlax-invoke Obj 'Explode) ; depends on if you want to do anything with the objects that are added to the database after the block has been exploded
(vla-Delete Obj)

The ' vlax-invoke ' method will return a list of all the items that were exploded into the database.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Chris

  • Swamp Rat
  • Posts: 548
Re: Suppress alert box when dynamic block is exploded
« Reply #2 on: January 06, 2011, 12:34:37 PM »
I'm working in '11 and I dont receive any alert boxes either.
Christopher T. Cowgill, P.E.
AEC Collection 2020 (C3D)
Win 10

Nibster

  • Guest
Re: Suppress alert box when dynamic block is exploded
« Reply #3 on: January 06, 2011, 01:07:05 PM »
does using BURST create the alert as well?  (which, I've also never seen either)

clarkrj

  • Guest
Re: Suppress alert box when dynamic block is exploded
« Reply #4 on: January 07, 2011, 09:05:36 AM »
Adding this command
(command "delconstraint" (entlast) "")
After the dynamic block is edited and before it is exploded works.

Thanks for your help