I already got a step further:
pt1, pt2 are move from and to point
here is the code:
Vector3d oldX = new Vector3d(1, 0, 0);
Vector3d oldY = new Vector3d(0, 1, 0);
Vector3d oldZ = new Vector3d(0, 0, 1);
Matrix3d m = Matrix3d.AlignCoordinateSystem(pt1, oldX, oldY, oldZ, pt2, oldX, oldY, oldZ);
ent.TransformBy(m);
which stil not working. What's wrong in my code?
Thank you
Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023