RebarShapeDefinitionBySegments.AddListeningDimensionSegmentToSegment
Description:
Specify a dimension perpendicular to two fixed-direction segments, measured by a read-only parameter.
Specify a dimension perpendicular to two fixed-direction segments, measured by a read-only parameter.
Remarks:
RebarShapeDefinitionBySegments supports driving (read-write) dimensions only when they are associated with a single segment. Non-driving dimensions can involve multiple segments.
RebarShapeDefinitionBySegments supports driving (read-write) dimensions only when they are associated with a single segment. Non-driving dimensions can involve multiple segments.
public void AddListeningDimensionSegmentToSegment(
ElementId paramId,
double constraintDirCoordX,
double constraintDirCoordY,
int iSegment0,
int iSegment1
)
-
paramIdId of a parameter to report the length of the dimension. The parameter will be read-only on Rebar instances.
-
DoubleconstraintDirCoordXThe x-coordinate of a 2D vector specifying the constraint direction.
-
DoubleconstraintDirCoordYThe y-coordinate of a 2D vector specifying the constraint direction.
-
Int32iSegment0Index of the first segment (0 to NumberOfSegments - 1).
-
Int32iSegment1Index of the second segment (0 to NumberOfSegments - 1).
-
paramId is not the id of a shared parameter in the current document, or its unit type is not Reinforcement_Length, Angle or Number. -or- The length of the vector (constraintDirCoordX, constraintDirCoordY) is too close to zero. -or- iSegment0 is not between 0 and NumberOfSegments. -or- iSegment1 is not between 0 and NumberOfSegments. -or- Edge iSegment0 has a variable angle; it must have a fixed angle perpendicular to (constraintDirCoordX, constraintDirCoordY). -or- Edge iSegment1 has a variable angle; it must have a fixed angle perpendicular to (constraintDirCoordX, constraintDirCoordY).
-
A non-optional argument was null