2022 Method
Changes 5
M

Rebar.CreateFromCurvesAndShape

Description:
Creates a new instance of a shape driven Rebar element within the project. The instance will have the default shape parameters from the RebarShape.
Overloads (2):
CreateFromCurvesAndShape(Document,RebarShape,RebarBarType,RebarHookType,RebarHookType,Element,XYZ,IList[Curve],RebarHookOrientation,RebarHookOrientation,Double,Double,ElementId,ElementId)
public static Rebar CreateFromCurvesAndShape(
	Document doc,
	RebarShape rebarShape,
	RebarBarType barType,
	RebarHookType startHook,
	RebarHookType endHook,
	Element host,
	XYZ norm,
	IList<Curve> curves,
	RebarHookOrientation startHookOrient,
	RebarHookOrientation endHookOrient,
	double hookRotationAngleAtStart,
	double hookRotationAngleAtEnd,
	ElementId endTreatmentTypeIdAtStart,
	ElementId endTreatmentTypeIdAtEnd
)
  • doc
    A document.
  • rebarShape
    A RebarShape element that defines the shape of the rebar. A RebarShape element that matches curves, hooks, hook rotation angles and End Treatment. A RebarShape element that provides the RebarStyle of the rebar.
  • barType
    A RebarBarType element that defines bar diameter, bend radius and material of the rebar.
  • startHook
    A RebarHookType element that defines the hook for the start of the bar. If this parameter is nulla null reference (Nothing in Visual Basic), it means to create a rebar with no hook.
  • endHook
    A RebarHookType element that defines the hook for the end of the bar. If this parameter is nulla null reference (Nothing in Visual Basic), it means to create a rebar with no hook.
  • host
    The element to which the rebar belongs. The element must support rebar hosting; RebarHostData.
  • norm
    The normal to the plane that the rebar curves lie on.
  • IList<Curve>
    curves
    An array of curves that define the shape of the rebar curves. They must belong to the plane defined by the normal and origin. Bends and hooks should not be included in the array of curves.
  • startHookOrient
    Defines the orientation of the hook plane at the start of the rebar with respect to the orientation of the first curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
  • endHookOrient
    Defines the orientation of the hook plane at the end of the rebar with respect to the orientation of the last curve and the plane normal. Only two values are permitted: Value = Right: The hook is on your right as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up." Value = Left: The hook is on your left as you stand at the end of the bar, with the bar behind you, taking the bar's normal as "up."
  • Double
    hookRotationAngleAtStart
    The out of plane hook rotation angle at the start of the bar.
  • Double
    hookRotationAngleAtEnd
    The out of plane hook rotation angle at the end of the bar.
  • endTreatmentTypeIdAtStart
    The end treatment type id at the start of the bar.
  • endTreatmentTypeIdAtEnd
    The end treatment type id at the end of the bar.
Return Value nullNothingnullptr The newly created Rebar instance, or null Nothing nullptr a null reference ( Nothing in Visual Basic) if the operation fails.