Moving group of entities from point1 to point2

Moving group of entities from point1 to point2

HJohn1
Advocate Advocate
886 Views
2 Replies
Message 1 of 3

Moving group of entities from point1 to point2

HJohn1
Advocate
Advocate

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

0 Likes
Accepted solutions (1)
887 Views
2 Replies
Replies (2)
Message 2 of 3

chiefbraincloud
Collaborator
Collaborator
Accepted solution

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
0 Likes
Message 3 of 3

HJohn1
Advocate
Advocate

Thank you

0 Likes