.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Point3d Point2d rotaion Problem

5 REPLIES 5
Reply
Message 1 of 6
willey
451 Views, 5 Replies

Point3d Point2d rotaion Problem

Please Excuse my poor english.

I was writing codes like this to rotate Point3d object.

Point3d point= new Point3d(300,200,0);
point.rotateby(angle, Vector3d.ZAxis, centerPoint);
ed.WriteMessage("Point is : {0}", point.ToString());

But no changes occured. I checked it through the messages.

How can I fix this problem. Is that only for me?
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: willey

Look at the RotateBy() method in the
object browswer.

What does it return ?


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5531549@discussion.autodesk.com...
Please Excuse my poor english.

I was writing codes like this to rotate Point3d object.

Point3d point= new Point3d(300,200,0);
point.rotateby(angle, Vector3d.ZAxis, centerPoint);
ed.WriteMessage("Point is : {0}", point.ToString());

But no changes occured. I checked it through the messages.

How can I fix this problem. Is that only for me?
Message 3 of 6
willey
in reply to: willey

Same result.

"Point is : 300,200,0"

I've made the same codes in ObjectARX by C++, but it worked. I can't understand this situation.

thanks.
Message 4 of 6
Anonymous
in reply to: willey

Sorry, you're mistaken.

The result is the rotated point.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5531564@discussion.autodesk.com...
Same result.

"Point is : 300,200,0"

I've made the same codes in ObjectARX by C++, but it worked. I can't understand this situation.

thanks.
Message 5 of 6
Anonymous
in reply to: willey

Have a look at the line below:

ed.WriteMessage("Point is : {0}", point.RotateBy(angle, Vector3d.ZAxis,
centerPoint).ToString());



>Same result.
>"Point is : 300,200,0"
>I've made the same codes in ObjectARX by C++, but it worked. I can't
>understand this situation.
Message 6 of 6
kbarnettza
in reply to: willey

Excellent code - Thanks Tony

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost