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; 
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.