How to get block Transformation matrix

How to get block Transformation matrix

ilovejingle
Enthusiast Enthusiast
1,236 Views
0 Replies
Message 1 of 1

How to get block Transformation matrix

ilovejingle
Enthusiast
Enthusiast

I am using VB 6 on AutoCAD. 

I am struggling with the method of how you are able to extract an object's transformation matrix using vba code.

I understand you could use GetSubEntity Method like below.

Dim objEnt As AcadEntity, pt As Variant, transMat As Variant, context As Variant
ThisDrawing.Utility.GetSubEntity objEnt, pt, transMat, context, "Please Select an Entity :"

This gives you a Transpose of the Transformation matrix ( No idea why, after testing, it seems working that way.)

My questions is how you will be able to get the matrix without actually selecting the entity using the above method.

For example, you may loop through a collection of objects and get the transformation matrix of a certain object.

Thank you very much.

 

 

 

0 Likes
1,237 Views
0 Replies
Replies (0)