2020 Class
Changes 4
C

FillPattern

Description:
Represents a fill pattern 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.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.FillPattern
public class FillPattern : IDisposable
Name Return Type Description
C FillPattern() None Creates a fill pattern with FillPatternHostOrientation::FPORIENTATION_TO_VIEW and FillPatternTarget::FPTARGET_NONE.
C FillPattern(FillPattern) None Constructs a new copy of the input FillPattern object.
C FillPattern(String, FillPatternTarget, FillPatternHostOrientation) None Creates a fill pattern based on the given name, FillPatternTarget and FillPatternHostOrientation.
C FillPattern(String, FillPatternTarget, FillPatternHostOrientation, Double, Double) None Creates a simple hatch fill pattern based on the given name, angle, spacing, FillPatternTarget and FillPatternHostOrientation.
C FillPattern(String, FillPatternTarget, FillPatternHostOrientation, Double, Double, Double) None Creates a simple crosshatch fill pattern based on the given name, angle, spacing, FillPatternTarget and FillPatternHostOrientation.
Name Return Type Description
M Dispose() None Releases all resources used by the
M ExpandDots() bool Corrects pattern dots to make them be drawn properly for Revit.
M GetFillGrid(Int32) The fill grid. Gets the specified fill grid.
M GetFillGrids() The fill grids. Gets all fill grids in this fill pattern
M IsEqual(FillPattern) bool Check if the contents in two fill patterns are equal.
M SetFillGrid(Int32, FillGrid) None Sets the fill grid.
M SetFillGrids(IList<FillGrid>) None Set the fill grids in this fill pattern.
Name Return Type Description
P GridCount int Gets the count of the fill grids in this fill pattern.
P HostOrientation FillPatternHostOrientation Orientation to host layer.
P IsSolidFill bool Check if the fill pattern is a solid fill pattern.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.
P LengthPerArea double Gets length of all lines that placed on unit area.
P LinesPerLength double Gets the number of solid lines that placed in unit length.
P Name string The name of the fill pattern.
P StrokesPerArea double Gets the number of strokes that placed on unit area.
P Target FillPatternTarget Target of this fill pattern applied to.