I use the TransformBy() method of the block reference. This code is in C#
and rotates the entity as well as moving it, but maybe you can learn
something from it. There are some methods for creating a matrix that just
moves it instead of rotating it. I'd check out the methods of Matrix3d.
// I set this stuff first
Point3d origin = new Point3d(0, 0, 0);
Vector3d oldX = new Vector3d(1, 0, 0);
Vector3d oldY = new Vector3d(0, 1, 0);
Vector3d oldZ = new Vector3d(0, 0, 1);
// This actually performs the rotation
Matrix3d m = Matrix3d.AlignCoordinateSystem(origin, oldX, oldY, oldZ,
location, xVector, yVector, xVector.CrossProduct(yVector));
wrote in message
could anybody tell me how to move an entity by using vb.net?
it's very urgent.