
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I actually want to draw HermiteSpline.
After reading here, (from my understanding) we cant draw HermiteSpline, but we can draw NurbsSpline.
Then i found that we can create NurbSpline from HermiteSpline like this, but i am not sure how is the result.
NurbSpline nurbspline = NurbSpline.Create(hermitespline);
Then i try to draw NurbSpline using below method:
ModelNurbSpline modelnurbspline = doc.Create.NewModelCurve(nurbspline, sketchplane) as ModelNurbSpline;
Then i've got this message:
An exception of type 'Autodesk.Revit.Exceptions.ArgumentException' occurred in RevitAPI.dll but was not handled in user code
Additional information: Curve must be in the plane
Parameter name: pCurveCopy occurred
Question is, how to create SketchPlane for NurbsSpline to create ModelNurbSpline? or is there any other workaround?
Also, how to use SetSketchPlaneAndCurve method?
Solved! Go to Solution.