.NET

Reply
Distinguished Contributor
Posts: 166
Registered: ‎09-26-2008
Message 1 of 3 (212 Views)
Accepted Solution

Moving group of entities from point1 to point2

212 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

*Expert Elite*
chiefbraincloud
Posts: 750
Registered: ‎02-13-2008
Message 2 of 3 (196 Views)

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
Posts: 166
Registered: ‎09-26-2008
Message 3 of 3 (190 Views)

Re: Moving group of entities from point1 to point2

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

Thank you

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community