PDA

View Full Version : Problem in vla-explode method



rajat126
2004-06-22, 09:06 AM
Hi,
This is Rajat here and I have a little problem with vla-explode method.
When I am trying to explode a block with default X , Y & Z scale factor, there is no problem. But if I change any of the default scale factor, It is not working. It produces an error message.... "error: Automation Error. Invalid Input."

Can you give me an idea that I can solve this problem ?

whdjr
2004-06-22, 03:12 PM
Rajat,


I may be wrong, but I don't believe you can explode a block to a scale.

kwbrown
2004-06-22, 08:49 PM
(setq objBlock (vlax-ename->vla-object (car (entsel))))
(vla-explode objBlock )

This works for me

on

blocks inserted with unequal X, Y, Z scales
.. also on mirrored blocks with unequal X, Y, Z scales

Jeff_M
2004-06-22, 11:10 PM
First make sure your EXPLMODE system variable is set to 1. If it's 0 then blocks must be equally scaled.

Good Luck

whdjr
2004-06-23, 12:40 PM
I didn't know that.

Thats a good one to know.