cancel
Showing results for 
Search instead for 
Did you mean: 

Working with sketch coordinate system

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello everyone!

 

Is it possible to programmatically create lines in sketch entering start and end points values relative to the internal sketch coordinate system? I tried to record a journal but it was of no use because points there are absolute. Can you please give an advice?

1 REPLY

Re: Working with sketch coordinate system

Genius
Genius
I have never tried it but you can get the Orientation of the local coordinate system with "sketch.orientation" and the local origin with "sketch.origin".
Then you can create a line with "workpart.CurveCollection.CreateLine(Point3d, Point3d)" and add it to the sketch with "sketch.AddGeometry(DisplayableObject)"