TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on September 07, 2011, 03:07:34 PM
-
(defun c:kaboum (/ it)
(setq it (vlax-ename->vla-object (car (entsel))))
(vlax-safearray->list (variant-value (vlax-invoke-method it "Explode")))
(vla-delete it)
)
just sharing..
-
Sorry to criticise Andrea, but this doesn't seem like your usual standard of coding... variable 'it' isn't defined, and no error trapping should the user miss...
EDIT: I see you fixed 'it' :P
-
Also you could shorten a bit. :-)
(vlax-invoke it 'Explode)
returns the same as this:
(vlax-safearray->list (variant-value (vlax-invoke-method it "Explode")))
-
And you can also use QSELECT to select all blocks then..... KA-BOOOOOMMM!!!!!
-
And you can also use QSELECT to select all blocks then..... KA-BOOOOOMMM!!!!!
Yeah, the routine. :-D
-
And you can also use QSELECT to select all blocks then..... KA-BOOOOOMMM!!!!!
Yeah, the routine. :-D
Just t'rowin' out anudder option, dat's all.
-
And you can also use QSELECT to select all blocks then..... KA-BOOOOOMMM!!!!!
Yeah, the routine. :-D
Just t'rowin' out anudder option, dat's all.
Just trollin.
-
And you can also use QSELECT to select all blocks then..... KA-BOOOOOMMM!!!!!
Yeah, the routine. :-D
Just t'rowin' out anudder option, dat's all.
Just trollin.
-
Thank you Ronjonp for the shorter way. :)
Lee, I was typing during talking on phone...I was distracted. :P
Have a nice one guys.
-
Thank you Ronjonp for the shorter way. :)
Lee, I was typing during talking on phone...I was distracted. :P
Have a nice one guys.
No prob ... although thinking about it more it does not really matter what is returned since it's not being fed to anything. :-)
-
Hi all !
Can you help me covert Unexplode Blocks to Allow exploding Blocks and reverse.
Thanks all !
-
Hi all !
Can you help me covert Unexplode Blocks to Allow exploding Blocks and reverse.
Thanks all !
try this
http://www.theswamp.org/index.php?topic=38488.msg436115#msg436115
inside is routine to do this BX
k.