Returns the necessary information to define a NURBS surface
for a given [!:Autodesk::Revit::DB::HermiteSuface] or [!:Autodesk::Revit::DB::RuledSuface].
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public static NurbsSurfaceData GetNurbsSurfaceDataForSurface( Surface surface )
Parameters
- surface Surface
- The HermiteSurface or RuledSurface to be converted.
Return Value
NurbsSurfaceDataA class containing the necessary data to define a NURBS surface.
Exceptions
Exception | Condition |
---|---|
ArgumentException | This surface type is not supported for this function. |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | Couldn't get NURBS data from surface. |