2027 Method
Changes 0
M

Rebar.CreateFreeForm

Description:
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.
public static Rebar CreateFreeForm(
	Document doc,
	Guid serverGUID,
	RebarBarType barType,
	Element host
)
  • doc
    A Document.
  • Guid
    serverGUID
    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
    A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
  • host
    The element to which the rebar belongs. The element must support rebar hosting.
Return Value Rebar The newly created free form Rebar Instance.