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

Transform from WCS to UCS

1 REPLY 1
Reply
Message 1 of 2
hericson
1024 Views, 1 Reply

Transform from WCS to UCS

I would like to transform a point from WCS to current UCS. To transform the other way, UCS to WCS, I use this code

{code}
Dim matUCS As Matrix3d = ed.CurrentUserCoordinateSystem
Dim wcsPoint As Point3d = ucsPoint.TransformBy(matUCS)
{code}

But how should I do from WCS to UCS?
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: hericson

Use the matrix returned by CurrentUserCoordinateSystem.Inverse()

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6384930@discussion.autodesk.com...
I would like to transform a point from WCS to current UCS. To transform the
other way, UCS to WCS, I use this code

{code}
Dim matUCS As Matrix3d = ed.CurrentUserCoordinateSystem
Dim wcsPoint As Point3d = ucsPoint.TransformBy(matUCS)
{code}

But how should I do from WCS to UCS?

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