Create Method


Creates a new instance of RebarSystemSpanSymbol in the project.

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

Syntax

C#
public static RebarSystemSpanSymbol Create(
	Document document,
	ElementId viewId,
	LinkElementId hostId,
	XYZ point,
	ElementId symbolId
)
Visual Basic
Public Shared Function Create ( _
	document As Document, _
	viewId As ElementId, _
	hostId As LinkElementId, _
	point As XYZ, _
	symbolId As ElementId _
) As RebarSystemSpanSymbol
Visual C++
public:
static RebarSystemSpanSymbol^ Create(
	Document^ document, 
	ElementId^ viewId, 
	LinkElementId^ hostId, 
	XYZ^ point, 
	ElementId^ symbolId
)

Parameters

document
Type: Autodesk.Revit.DB Document
The document.
viewId
Type: Autodesk.Revit.DB ElementId
The id of the view in which the symbol should appear.
hostId
Type: Autodesk.Revit.DB LinkElementId
The ElementId of AreaReinforcement (either in the document, or linked from another document).
point
Type: Autodesk.Revit.DB XYZ
The span symbol's head position.
symbolId
Type: Autodesk.Revit.DB ElementId
The id of the family symbol of this symbol.

Return Value

A reference to newly created span symbol.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException hostId should refer to a AreaReinforcement element. -or- viewId does not refer to a valid view type for FabricReinSpanSymbol - only floor plan, reflected ceiling plans and elevations are permitted. -or- symbolId should refer to a FamilySymbol of category OST_FabricReinSpanSymbol.
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL
Autodesk.Revit.Exceptions DisabledDisciplineException None of the following disciplines is enabled: Structural.

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 →