Object snap on BlockReference entity

To make object snap work on BlockReference entities you need first to call:

viewportLayout1.Entities.SetCurrent(myBlockReference);

then to transform the resulting snap points using the following transformation:

Transformation t = myBlockReference.AccumulatedParentsTransforms; 

Point3D p2 = t * p1; 
Was this article helpful?
2 out of 2 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.