Rebar.CreateFreeForm
Description:
Creates a free form rebar that can have constraints.
Creates a free form rebar that can have constraints.
Remarks:
For this type of Free Form Rebar, the layout can be changed. The server identified by serverGUID will have the responsibility to create the curves for the specified layout. It requires a server GUID which will have the responsibility to define bar handles(which will be constrained) and to do the calculation of the curves. See [!:Autodesk::Revit::DB::Structure::IRebarUpdateServer] for more details.
For this type of Free Form Rebar, the layout can be changed. The server identified by serverGUID will have the responsibility to create the curves for the specified layout. It requires a server GUID which will have the responsibility to define bar handles(which will be constrained) and to do the calculation of the curves. See [!:Autodesk::Revit::DB::Structure::IRebarUpdateServer] for more details.
Overloads (3):
CreateFreeForm(Document,Guid,RebarBarType,Element)
public static Rebar CreateFreeForm(
Document doc,
Guid serverGUID,
RebarBarType barType,
Element host
)
-
docA Document.
-
GuidserverGUIDThe 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.
-
barTypeA RebarBarType element that defines bar diameter, bend radius and material of the rebar.
-
hostThe element to which the rebar belongs. The element must support rebar hosting.
-
host is not a valid rebar host. -or- The server with serverGUID was not registered for RebarUpdateService.
-
A non-optional argument was null