DXF code of 'GROUP' object

DXF code of 'GROUP' object

Anonymous
Not applicable
455 Views
4 Replies
Message 1 of 5

DXF code of 'GROUP' object

Anonymous
Not applicable
Hello,
Anybody can help me to get DXF code of 'GROUP' object ?
I tried to use below code to select only Group object in drawing but failed.

gpCode(0) = 0
dataValue(0) = "GROUP" ==> Is that correct ?

Regards
Dohkim
0 Likes
456 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
For what its worth, I posted a similar question a few months back, and got the same amount of answers 😕 (none)

I ended up looping thru the groups collection and getting the handles to the entities I was looking for.

I believe groups are treated like selection sets; they arent actual entities. But it would be real nice if someone would post otherwise, and prove me wrong 🙂
0 Likes
Message 3 of 5

Anonymous
Not applicable

Groups are objects that hold the objectIds of all
of the entities in that group.  And, each entity in the group has a soft
pointer reference to the group object.  So, you are correct that group
objects are not themselves entities.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
For
what its worth, I posted a similar question a few months back, and got the
same amount of answers 😕 (none) I ended up looping thru the groups collection
and getting the handles to the entities I was looking for. I believe groups
are treated like selection sets; they arent actual entities. But it would be
real nice if someone would post otherwise, and prove me wrong
:)
0 Likes
Message 4 of 5

Anonymous
Not applicable
Iterating through the items in a Group gives you the
entities in the group. Unless you need to supply them
to another command (verses doing something with
them in your own code), there's no need to select the
group.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


wrote in message news:6181364@discussion.autodesk.com...
Hello, Anybody can help me to get DXF code of 'GROUP' object ? I tried to
use below code to select only Group object in drawing but failed. gpCode(0)
= 0 dataValue(0) = "GROUP" ==> Is that correct ? Regards Dohkim
0 Likes
Message 5 of 5

Anonymous
Not applicable
Hello, All

I appreciate your kind reply.

Hello , Tony

Do you work for Autodesk ? I saw your posts in here many times.. Just curious.
0 Likes