Exploding blocks - Impossible!!!!!

Exploding blocks - Impossible!!!!!

Anonymous
Not applicable
316 Views
4 Replies
Message 1 of 5

Exploding blocks - Impossible!!!!!

Anonymous
Not applicable
I am using VB6 to insert a drawing into a R14.01 drawing, which works fine,
however when I try to explode the inserted block I get an error message
saying that the method is not applicable. Can someone please let me know if
they have been successful exploding blocks in R14.01 with VB6.

Cheers, John.
0 Likes
317 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Post your code and let's have look.

"John McDowell" wrote in message
news:[email protected]...
> I am using VB6 to insert a drawing into a R14.01 drawing, which works
fine,
> however when I try to explode the inserted block I get an error message
> saying that the method is not applicable. Can someone please let me know
if
> they have been successful exploding blocks in R14.01 with VB6.
>
>
> Cheers, John.
>
>
0 Likes
Message 3 of 5

Anonymous
Not applicable
The VBA in the 14.01 VBA, doesn't support explode.

If you want to explode a block, you will have to use SendKeys, or
something similar, which in my opinion isn't a very good way.

Or else check out acadunsupp.arx in the *.customer-files newsgroup, it
has a method to explode blocks in 14.01.

Good luck

Lars Gaarde
PS: The explode method IS implemented in AutoCAD 2000.

On Tue, 28 Dec 1999 15:02:49 -0600, "Frank Oquendo"
wrote:

>Post your code and let's have look.
>
>"John McDowell" wrote in message
>news:[email protected]...
>> I am using VB6 to insert a drawing into a R14.01 drawing, which works
>fine,
>> however when I try to explode the inserted block I get an error message
>> saying that the method is not applicable. Can someone please let me know
>if
>> they have been successful exploding blocks in R14.01 with VB6.
>>
>>
>> Cheers, John.
>>
>>
>
0 Likes
Message 4 of 5

Anonymous
Not applicable
The ExplodeBlock method for R14 is implemented
in the AcVbExt Lib from Jorge Lopez

and is available at this url:

http://ourworld.compuserve.com/homepages/tonyt/delphi/samples.htm

Denis
0 Likes
Message 5 of 5

Anonymous
Not applicable
A utility to explode blocks in R14.01 is the AcVbExt Lib like Denis
wrote. There is only one problem though, only uniformly scaled blocks
can be
exploded.
If that is no problem and you want to know which entities were in the
exploded block,
like you get with ExplodeBlock method in AutoCAD 2000, this is a way to
do it.

1. Count the number of entities in modelspace (intEntitiesBeforeExplode
= ThisDrawing.Modelspace.count)
2. Explode the block
3. Count the number of entities in modelspace again
(inEntitiesAfterExplode = ThisDrawing.Modelspace.count)
4. The entities that were in the exploded block, are the entities:

if intEntitiesAfterExplode >= intEntitiesBeforeExplode then
For index = intEntitiesBeforeExplode to intEntitiesAfterExplode
set Ent = ThisDrawing.Modelspace.Item(index)
next index
endif

Cheers,

Gerard Kamman
The Netherlands

John McDowell wrote:
>
> I am using VB6 to insert a drawing into a R14.01 drawing, which works fine,
> however when I try to explode the inserted block I get an error message
> saying that the method is not applicable. Can someone please let me know if
> they have been successful exploding blocks in R14.01 with VB6.
>
> Cheers, John.
0 Likes