Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Distinguished Contributor
bhuta_n
Posts: 167
Registered: ‎10-19-2006
Message 1 of 7 (2,247 Views)

how to make unexplodable blocks explodable?

2247 Views, 6 Replies
11-01-2007 01:36 PM
hi,
i want unexplodable blocks to be explodable.any help?i know thr is explodable property of a block.but dont know to use lisp...
thanx
*Expert Elite*
_gile
Posts: 2,114
Registered: ‎04-29-2006
Message 2 of 7 (2,247 Views)

Re: how to make unexplodable blocks explodable?

11-01-2007 04:21 PM in reply to: bhuta_n
Hi,

Here's a little routine to put explodable all blocks in the drawing

(defun c:expl-p ()
(vl-load-com)
(vlax-for b (vla-get-Blocks
(vla-get-ActiveDocument (vlax-get-acad-object))
)
(or (wcmatch (vla-get-Name b) "`**_Space*")
(vla-put-explodable b :vlax-true)
)
)
(princ)
)
Gilles Chanteau
Distinguished Contributor
bhuta_n
Posts: 167
Registered: ‎10-19-2006
Message 3 of 7 (2,247 Views)

Re: how to make unexplodable blocks explodable?

11-02-2007 12:13 AM in reply to: bhuta_n
thank u
i will have to work on it for my needs
Distinguished Contributor
MadMage863
Posts: 169
Registered: ‎10-16-2007
Message 4 of 7 (2,247 Views)

Re: how to make unexplodable blocks explodable?

11-02-2007 10:58 AM in reply to: bhuta_n
Open the block in the block editor and, without selecting anything, open properties. Near the bottom should be the 'allow exploding' pulldown options.
Distinguished Contributor
moon47usaco
Posts: 198
Registered: ‎04-24-2006
Message 5 of 7 (2,247 Views)

Re: how to make unexplodable blocks explodable?

05-13-2008 11:05 AM in reply to: bhuta_n
Thanks gile

=]
Distinguished Contributor
Tom Smith
Posts: 3,729
Registered: ‎12-17-2003
Message 6 of 7 (2,247 Views)

Re: how to make unexplodable blocks explodable?

05-13-2008 01:56 PM in reply to: bhuta_n
I thought you said you had far too many blocks to handle this way.
Valued Mentor
RockyBrown4134
Posts: 436
Registered: ‎04-20-2006
Message 7 of 7 (1,584 Views)

Re: how to make unexplodable blocks explodable?

06-07-2013 11:46 AM in reply to: _gile

Gilles;

Just cleaning up some old post. I just wanted to say thank you for this simple but great tool.

If this response answers your question, Please mark this response as "Accept as Solution"

Rocky Brown
Sam Carbis Solutions Group
AutoCAD 2012 / Inventor 2012
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!