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

How can I switch from a WCS to Current UCS?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
zhengyunyang2019
715 Views, 3 Replies

How can I switch from a WCS to Current UCS?

For example, I've obtained a point that's based on WCS coordinates, and I want to convert its coordinates to be based on UCS. How can I accomplish this using ARX?

thanks

3 REPLIES 3
Message 2 of 4
ynapeu
in reply to: zhengyunyang2019

use acdbWcs2Ucs Function.

Message 3 of 4

 

Can you provide scarletios a code example in ARX that demonstrates converting a point from WCS to UCS?
E.g: scarlet ils

 

 

Message 4 of 4
ynapeu
in reply to: zesismark

AcGePoint3d convertWcsToUcs(const AcGePoint3d& wcsPoint)

{
AcGeVector3d ucsPoint;

acdbWcs2Ucs(asDblArray(wcsPoint), asDblArray(ucsPoint), 0);

return AcGePoint3d(ucsPoint.x, ucsPoint.y, ucsPoint.z);
}

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report