FillPattern Constructor (String, FillPatternTarget, FillPatternHostOrientation, Double, Double)


Creates a simple hatch fill pattern based on the given name, angle, spacing, FillPatternTarget and FillPatternHostOrientation.

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

Syntax

C#
public FillPattern(
	string name,
	FillPatternTarget target,
	FillPatternHostOrientation orientation,
	double angle,
	double spacing1
)
Visual Basic
Public Sub New ( _
	name As String, _
	target As FillPatternTarget, _
	orientation As FillPatternHostOrientation, _
	angle As Double, _
	spacing1 As Double _
)
Visual C++
public:
FillPattern(
	String^ name, 
	FillPatternTarget target, 
	FillPatternHostOrientation orientation, 
	double angle, 
	double spacing1
)

Parameters

name
Type: SystemString
The name.
target
Type: Autodesk.Revit.DBFillPatternTarget
The fill pattern target.
orientation
Type: Autodesk.Revit.DBFillPatternHostOrientation
The fill pattern orientation.
angle
Type: SystemDouble
The angle.
spacing1
Type: SystemDouble
The spacing.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →