Method to Offset/Parallel a Line/Curve

Method to Offset/Parallel a Line/Curve

Anonymous
Not applicable
2,536 Views
2 Replies
Message 1 of 3

Method to Offset/Parallel a Line/Curve

Anonymous
Not applicable

Hello

 

Is there a function/method that will offset a line for me?

 

For example; if I have the following model line, I want to create another model line exactly the same as this one just with an offset distance of 500mm away:

Capture.JPG   Capture2.JPG

 

I've looked through the api but theres no function 'Parallel();' or 'Offset();'.

 

Line line = doc.Application.Create.NewLineBound(segStrt, segEnd);
Line parallelLine = line.Offset(line, 500); // not method like this

 

0 Likes
2,537 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Correct me if i'm wrong, but offset and parallel are nothing more then a copy in a certain direction. So if you want to offset your line you can copy it 500mm in the Y direction.
0 Likes
Message 3 of 3

gopinath.taget
Alumni
Alumni

Hello,

 

This blog post may help:http://thebuildingcoder.typepad.com/blog/2010/05/model-curve-creator.html

 

Thanks

Gopinath

0 Likes