Procedure SetConstrain sets the active drawing constraints for the document. Each constraint is represented by an ASCII character identifier; these characters are assembled into a string which determines the constraints to be activated.
VectorWorks Constraint Identifiers
| Constraint | Identifier |
|---|---|
| Snap To Grid | A |
| Snap To Objects | Q |
| Constrain Angle | S |
| Snap Intersection | W |
| Smart Points | D |
| Snap To Distance | E |
| Smart Edge | F |
| Constrain Tangent | R |
PROCEDURE SetConstrain(str : STRING);def vs.SetConstrain(str):
return None| Name | Type | Description |
|---|---|---|
| str | STRING | Constraint constant string. |
SetConstrain('QD');
{activates the snap objects and smart point constraints and deactivates the others}Availability: from All Versions