MVBlock and jig

Anonymous

MVBlock and jig

Anonymous
Not applicable
I have a VS 2003 .NET routine developed in ADT 2006 that uses a jig to place a Multiview block.

I am trying to upgrade the routine in VS 2005.NET to run in Architecture 2008. I repointed the references to 2008 recompiled and it mostly works but when moving the pointer in modelspace the mvblock (which is supposed to follow the pointer) gets drawn with the inverse of the coordinates. (example if I move the pointer up the Y axis, the block moves down the Y axis).

The code sample is enclosed for your review.

Thanks.
0 Likes
Reply
380 Views
2 Replies
Replies (2)

Anonymous
Not applicable
There was a bug in the 2006 version of the .GetVectorTo() method so that it
returned the inverse of the vector that you expected. It was fixed in 2007.
In your WorldDraw method change this line

Vector3d displacementVector =
currentCurserPosition.GetVectorTo(previousCurserPosition);

to

Vector3d displacementVector =
previousCurserPosition.GetVectorTo(currentCurserPosition);
--
Bobby C. Jones
http://BobbyCJones.spaces.live.com

wrote in message news:5634242@discussion.autodesk.com...
I have a VS 2003 .NET routine developed in ADT 2006 that uses a jig to place
a Multiview block.

I am trying to upgrade the routine in VS 2005.NET to run in Architecture
2008. I repointed the references to 2008 recompiled and it mostly works
but when moving the pointer in modelspace the mvblock (which is supposed to
follow the pointer) gets drawn with the inverse of the coordinates.
(example if I move the pointer up the Y axis, the block moves down the Y
axis).

The code samp
le is enclosed for your review.

Thanks.
0 Likes

Anonymous
Not applicable
That did the trick. Thank you very much.
0 Likes