RebarTrimExtendData.CreateStartConstraint
Description:
Creates a constraint for the start handle of the rebar. This constraint will be set preferred after the API execution is finished successfully.
Creates a constraint for the start handle of the rebar. This constraint will be set preferred after the API execution is finished successfully.
public bool CreateStartConstraint(
IList<Reference> targetReferences,
bool isConstraintToCover,
double offsetValue
)
-
IList<Reference>targetReferencesThe references to which the rebar handle will be constrained. Will throw exception if it's empty or if it's anything but Face(s) from a structural that can host rebar.
-
BooleanisConstraintToCoverIf true the RebarConstraintType will be set to ToCover, otherwise RebarConstraintType will be set to FixedDistanceToHostFace.
-
DoubleoffsetValueThe distance from references to the rebar handle.
Return Value
Boolean
Returns true if a start constraint can be created with the given references, false otherwise.
The reference should be faces from structurals that can host rebar.
-
A non-optional argument was null