Hey,
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.
-C
// I set this stuff first
Point3d origin = new Point3d(0, 0, 0);
Point3d newLocation;
Vector3d xVector;
Vector3d yVector;
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));
bref.TransformBy(m);
wrote in message
news:4938352@discussion.autodesk.com...
hi all,
could anybody tell me how to move an entity by using vb.net?
it's very urgent.
thanks in advance