To which groups belongs an entity (VBA)

To which groups belongs an entity (VBA)

Anonymous
Not applicable
275 Views
3 Replies
Message 1 of 4

To which groups belongs an entity (VBA)

Anonymous
Not applicable
Hi,

I have the following problem. I want to pick an entity in the drawing. Of
the selected item I want to know in which group it is and which element are
in that group. Has anybody a solution how I identify in VBA fast in which
group an entity is, whitout iterating all groups?

TIA Leo
0 Likes
276 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
you really want to post vba questions to the vba ng:
autodesk.autocad.customization.vba

not that you won't get an answer here, it's just not your best bet.
--
Kevin


"Leo" wrote in message
news:03CC9C114F0FA95715C699965C730B7B@in.WebX.maYIadrTaRb...
> Hi,
>
> I have the following problem. I want to pick an entity in the drawing. Of
> the selected item I want to know in which group it is and which element
are
> in that group. Has anybody a solution how I identify in VBA fast in which
> group an entity is, whitout iterating all groups?
>
> TIA Leo
>
>
0 Likes
Message 3 of 4

Anonymous
Not applicable
Leo,

Here is a vlisp function for that, enjoy.

Luis Esquivel
0 Likes
Message 4 of 4

Anonymous
Not applicable
No simple VBA solution that does not require you to
search each group.

If you want the fastest possible solution, you can
use the GetGroups() method of the AcadXUtility class
in AcadX.arx (http://www.caddzone.com/acadx)

"Leo" wrote in message news:03CC9C114F0FA95715C699965C730B7B@in.WebX.maYIadrTaRb...
> Hi,
>
> I have the following problem. I want to pick an entity in the drawing. Of
> the selected item I want to know in which group it is and which element are
> in that group. Has anybody a solution how I identify in VBA fast in which
> group an entity is, whitout iterating all groups?
>
> TIA Leo
>
>
0 Likes