Skip to content

FillPattern

Public Class

Represents a fill pattern object.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.FillPattern

Namespace: Autodesk.Revit.DB

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class FillPattern : IDisposable

The FillPattern type exposes the following members.

Constructors

Name

Description


Public Method
FillPattern.

Creates a fill pattern with FillPatternHostOrientation::FPORIENTATION_TO_VIEW and FillPatternTarget::FPTARGET_NONE.


Public Method
FillPattern(FillPattern)

Constructs a new copy of the input FillPattern object.


Public Method
FillPattern(String, FillPatternTarget, FillPatternHostOrientation)

Creates a fill pattern based on the given name, FillPatternTarget and FillPatternHostOrientation.


Public Method
FillPattern(String, FillPatternTarget, FillPatternHostOrientation, Double, Double)

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


Public Method
FillPattern(String, FillPatternTarget, FillPatternHostOrientation, Double, Double, Double)

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


Properties

Name

Description


Public Property

Gets the count of the fill grids in this fill pattern.


Public Property

Orientation to host layer.


Public Property

Check if the fill pattern is a solid fill pattern.


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.


Public Property

Gets length of all lines that placed on unit area.


Public Property

Gets the number of solid lines that placed in unit length.


Public Property
Name

The name of the fill pattern.


Public Property

Gets the number of strokes that placed on unit area.


Public Property

Target of this fill pattern applied to.


Methods

Name

Description


Public Method

Releases all resources used by the FillPattern


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method

Corrects pattern dots to make them be drawn properly for Revit.


Public Method
Static Member
ExportToPAT

Export a list of FillPatterns to an AutoCAD PAT file.


Public Method

Gets the specified fill grid.


Public Method

Gets all fill grids in this fill pattern


Public Method

GetHashCode

Serves as the default hash function.
(Inherited from Object)


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method

Check if the contents and the name of the fill pattern is the same as the name and contents of this fill pattern.


Public Method

Sets the fill grid.


Public Method

Set the fill grids in this fill pattern.


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)


Remarks

Fill patterns control the appearance of surfaces that are cut or shown in projection. A simple fill pattern consists of a series of parallel or orthogonal lines. Note - Dots are coded as zero-length dashes in the fill pattern definition. When the Revit graphic engine encounters a zero-length line it simply ignores it and doesn’t draw anything. So call ExpandDots() for the patterns you construct to convert dots to small dashes, so that the rendering of the FillPattern is correct.