Applies a parametric constraint to the referenced object. The geometry of the constraint is defined by the specified object vertices.
{| class="wikitable_c" |+ Table - Constraint Types
| ! Index !! Constraint Type |
|---|
| style="text-align:center" |
| Vertical |
| - |
| style="text-align:center" |
| Horizontal |
| - |
| style="text-align:center" |
| Distance |
| - |
| style="text-align:center" |
| Vertical distance |
| - |
| style="text-align:center" |
| Horizontal distance |
| - |
| style="text-align:center" |
| Radius |
| } |
FUNCTION SetSingularConstraint(
typeOfConstraint : INTEGER;
h : HANDLE;
vertexA : INTEGER;
vertexB : INTEGER): BOOLEAN;def vs.SetSingularConstraint(typeOfConstraint, h, vertexA, vertexB):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| typeOfConstraint | INTEGER | Type of constraint to be applied. |
| h | HANDLE | Handle to object accepting constraint. |
| vertexA | INTEGER | Vertex defining the constraint geometry. |
| vertexB | INTEGER | Vertex defining the constraint geometry. |
Sets a constraint of type typeOfConstraint on the object h. The valid values for typeOfConstraint are 4 (vertical), 5 (horizontal), 8 (distance), 9 (vertical distance), 10 (horizontal distance) and 11 (radius). vertexA and vertexB indicate which vertices of the object define the geometry to be constrained. A value of -1 indicates that a vertex parameter is not applicable. It returns false if the constraint cannot be set.
Availability: from VectorWorks 9.0
- Parametric Constraints