.NET

.NET

Reply
Distinguished Contributor
171 Posts
4 Kudos
Registered: ‎09-26-2008
Post 1 of 3
Accepted Solution

Moving group of entities from point1 to point2

250 Views, 2 Replies
03-09-2012 07:05 AM

Can someone help me figure out which is the best way to move a group of entities (BlockReference) from one point to another?  I have their ObjectIds in an ObjectIdCollection.  Now, I don't know if there is a way to move all of them at once or if it have to be done for each one separately.  How can I move and entity from point to point?  Thanks

Use the TransformBy method inherited from the entity class.  You will need to loop through your collection and call TransformBy on each entity.

*Expert Elite*
753 Posts
54 Kudos
Registered: ‎02-13-2008
Post 2 of 3

Re: Moving group of entities from point1 to point2

03-09-2012 12:22 PM in reply to: HJohn1

Use the TransformBy method inherited from the entity class.  You will need to loop through your collection and call TransformBy on each entity.

Dave O.                                                                  Sig-Logos32.png
Distinguished Contributor
171 Posts
4 Kudos
Registered: ‎09-26-2008
Post 3 of 3

Re: Moving group of entities from point1 to point2

03-09-2012 01:45 PM in reply to: chiefbraincloud

Thank you

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!