.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Moving group of entities from point1 to point2

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
HJohn1
655 Views, 2 Replies

Moving group of entities from point1 to point2

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

2 REPLIES 2
Message 2 of 3
chiefbraincloud
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
Message 3 of 3
HJohn1
in reply to: chiefbraincloud

Thank you

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost