Create Method (Int32, Int32, IList(XYZ), Boolean, Boolean)


Create a Hermite surface using a net of 3D points as input. Specify periodicity in U and V direction.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2017

Syntax

C#
public static HermiteSurface Create(
	int nU,
	int nV,
	IList<XYZ> points,
	bool periodicU,
	bool periodicV
)
Visual Basic
Public Shared Function Create ( _
	nU As Integer, _
	nV As Integer, _
	points As IList(Of XYZ), _
	periodicU As Boolean, _
	periodicV As Boolean _
) As HermiteSurface
Visual C++
public:
static HermiteSurface^ Create(
	int nU, 
	int nV, 
	IList<XYZ^>^ points, 
	bool periodicU, 
	bool periodicV
)

Parameters

nU
Type: SystemInt32
Number of points in U direction.
nV
Type: SystemInt32
Number of points in V direction.
points
Type: System.Collections.GenericIListXYZ
Array of points. Must contain nU*nV points.
periodicU
Type: SystemBoolean
Periodicity in U direction
periodicV
Type: SystemBoolean
Periodicity in V direction

Return Value

A Hermite surface object created from input data.

Remarks

Points form a net of nU * nV (less one each if periodic) 3D points.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsArgumentsInconsistentException Thrown when the input arguments are inconsistent. The most common case is incorrect number of items in one of the lists.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →