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

Set a New UCS

2 REPLIES 2
Reply
Message 1 of 3
Lachoserouge
495 Views, 2 Replies

Set a New UCS

Hi reader,

 

I would like to draw a polyline with Buge in 3D.

I know that i have to use a LWpolyline to do that.

 

So to draw a LWpolyline in 3D I have to change my UCS, i think.

The fact is that I do not succed to do that.

 

I found the SetUcs function from AcDbViewport but i have no idea about how to set it actived to enable me to draw in this new coordinates system.

 

Hope you could help me.

 

Regards,

 

Aymeric

2 REPLIES 2
Message 2 of 3

You shouldn't have to create a new UCS. You can create your polyline in the WCS (e.g. in the xy plane) and then call its transformBy function, passing in your transformation matrix to transform it to the coordinate system you need (the coordinate system you wanted to create the UCS for).

 

Cheers,

 

Stephen Preston

Autodesk Developer Network

Cheers,

Stephen Preston
Autodesk Developer Network
Message 3 of 3

Hi,

 

Thank you for this help I gonna try as you said, I will come back to you.

 

Cheers

 

Aymeric

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

Post to forums  

Autodesk Design & Make Report

”Boost