2027 Method
Changes 0
M

RebarShapeDefinitionBySegments.AddConstraintParallelToSegment

Description:
Constrain the length of a segment by parameterizing its length.
public void AddConstraintParallelToSegment(
	int iSegment,
	ElementId paramId,
	bool measureToOutsideOfBend0,
	bool measureToOutsideOfBend1
)
  • Int32
    iSegment
    Index of the segment (0 to NumberOfSegments - 1).
  • paramId
    Id of a parameter to drive the constraint. To obtain the id of a shared parameter, call RebarShape.GetElementIdForExternalDefinition().
  • Boolean
    measureToOutsideOfBend0
    Choose between two possibilities for the first reference of the length dimension. If false, the reference is at the point where the bend begins; equivalently, at the projection of the bend centerpoint onto the segment. If true, the reference is moved outward by a distance equal to the bend radius plus the bar diameter; if the bend is a right angle or greater, this is equivalent to putting the reference at the outer face of the bend.
  • Boolean
    measureToOutsideOfBend1
    Choose between two possibilities for the second reference of the length dimension.
  • iSegment is not between 0 and NumberOfSegments. -or- paramId is not the id of a shared parameter in the current document, or its unit type is not Reinforcement_Length, Angle or Number.
  • A non-optional argument was null