Curve Offset

Curve Offset

Anonymous
Not applicable
637 Views
1 Reply
Message 1 of 2

Curve Offset

Anonymous
Not applicable

Hello everyone! 
How can I use offset a curve (Nurbspline) in revit api C#? 

I thought that the 'Curve.CreateOffset Method' contains something to do it but it seems that it doesn't...

 

Thank you


 

0 Likes
638 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Dear Anarchyfree,

 

Why do you say that Curve.CreateOffset does not offset a nurb spline?

 

The remarks on that method in the Revit API help file state something different:

 

Remarks ... Note that for elliptical fragments and NurbSpline curves, the offset will be created as a HermiteSpline...

 

From my understanding of that statement, nurb splines are indeed offset, and the result is a hermite spline.

 

If you need your result to be a nurb spline, you will iether have to implement the whole offset method yourself or convert the resulting hermite spline back to a nurb spline.

 

I hope this helps.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes