Message 1 of 3
problem with : transformby

Not applicable
05-27-2001
07:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hy,
I'm writing a program in Delphi which uses VBA instructions to modify an
Autocad drawing.
I'm using AutoCad 14.01, and the instruction which give me the problem is:
obj.transformby(mrot);
Where:
obj : is an object alredy defined and designed,
mrot : is a 4x4 transformation matrix .
Everything works if I try to move the object, or to rotate it, but it
doesn't work correctly when I try to do the 2 things together.
I'll try to explain:
I want realize an animation of an object in my dwg file. This is made by
moving the object on the screen, if the movement is a translation along X or
Y or both XY axis, everything works, even if I rotate the object it works,
but when I try to rotate and translate the object at the same time only the
rotation is performed.
I'm quite sure the transformation matrix (mrot) is correct.
I'm start thinking there is a bug in the instruction.
Has anyone the same problem?
Could anyone help me, please.
Thanks
Gabriele Giuliani.
I'm writing a program in Delphi which uses VBA instructions to modify an
Autocad drawing.
I'm using AutoCad 14.01, and the instruction which give me the problem is:
obj.transformby(mrot);
Where:
obj : is an object alredy defined and designed,
mrot : is a 4x4 transformation matrix .
Everything works if I try to move the object, or to rotate it, but it
doesn't work correctly when I try to do the 2 things together.
I'll try to explain:
I want realize an animation of an object in my dwg file. This is made by
moving the object on the screen, if the movement is a translation along X or
Y or both XY axis, everything works, even if I rotate the object it works,
but when I try to rotate and translate the object at the same time only the
rotation is performed.
I'm quite sure the transformation matrix (mrot) is correct.
I'm start thinking there is a bug in the instruction.
Has anyone the same problem?
Could anyone help me, please.
Thanks
Gabriele Giuliani.