Get group object from member object

Get group object from member object

dgorsman
Consultant Consultant
247 Views
2 Replies
Message 1 of 3

Get group object from member object

dgorsman
Consultant
Consultant
I have a minor problem here, and I've been spinning my wheels for most of this afternoon.

I have a cylinder that is grouped with a polyline at its center. I have the cylinder object assigned to an object variable, but not the polyline. What I want, is a means of getting the group the cylinder belongs to given only that object. From there I can dig down into the group to get the polyline object.

The stumbling block is there seems to be no property or method of 3DSolid (or any AutoCAD drawing object, for that matter) that points to the group or groups the object is a member of. Am I missing something basic, or do I have to do this the long way round? There are potentially hundreds of unnamed groups in the drawing and I want to avoid searching every one of them...
----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes
248 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
It's the long way or use xdata instead of a group
0 Likes
Message 3 of 3

dgorsman
Consultant
Consultant
*grumble* Thanks. Unfortuneately the objects are placed by a third party application, so adding more xdata would just add more work.
----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes