Places a new instance of the Span Direction Symbol into the project relative to a particular host element and view.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static SpanDirectionSymbol Create(
Document document,
ElementId viewId,
LinkElementId elemIdToTag,
XYZ headPosistion,
ElementId symbolId
)
Parameters
- document Document
-
The document.
- viewId ElementId
-
The id of the view in which the symbol should appear.
- elemIdToTag LinkElementId
-
The ElementId of a Floor (either in the document or linked from another document).
- headPosistion XYZ
-
The span symbol's head position.
- symbolId ElementId
-
The id of the family symbol of this span symbol.
Return Value
SpanDirectionSymbol
Returns the newly created symbol.
Exceptions
| Exception | Condition |
|---|
| ArgumentException |
The specified viewId should represent a Plan View.
-or-
The specified elemIdToTag should represent a Floor element.
-or-
The specified symbolId isn't valid. It should be a FamilySymbol of OST_SpanDirectionSymbol category.
|
| ArgumentNullException |
A non-optional argument was null
|
See Also
Reference