Retrieves the FillPatternElement by its name.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.3.0.0 (26.3.0.0)
Syntax
C#
public static FillPatternElement GetFillPatternElementByName( Document document, FillPatternTarget target, string name )
Parameters
- document Document
- The document in which to retrieve the FillPatternElement.
- target FillPatternTarget
- The FillPatternTarget of the FillPatternElement.
- name String
- The name of the FillPatternElement.
Return Value
FillPatternElementThe FillPatternElement.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | target must be Model or Drafting. |
| ArgumentNullException | A non-optional argument was null |
| ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |
