Showing results for 
Search instead for 
Do you mean 

Working with sketch coordinate system

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?


Re: Working with sketch coordinate system

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)"