Creates a free form rebar that can have constraints.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static Rebar CreateFreeForm( Document doc, Guid serverGUID, RebarBarType barType, Element host )
Parameters
- doc Document
- A Document.
- serverGUID Guid
- The API server GUID. Should be the same that the function GetServerId() from class derived from IRebarUpdateServer returns. This server has the responsibility to calculate the bars of Rebar.
- barType RebarBarType
- A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
- host Element
- The element to which the rebar belongs. The element must support rebar hosting.
Return Value
RebarThe newly created free form Rebar Instance.
Exceptions
Exception | Condition |
---|---|
ArgumentException | host is not a valid rebar host. -or- The server with serverGUID was not registered for RebarUpdateService. |
ArgumentNullException | A non-optional argument was null |