# VS:SetSingularConstraint

From Vectorworks Developer

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

## Description

Applies a parametric constraint to the referenced object. The geometry of the constraint is defined by the specified object vertices.Index | Constraint Type |
---|---|

4 | Vertical |

5 | Horizontal |

8 | Distance |

9 | Vertical distance |

10 | Horizontal distance |

11 | Radius |

FUNCTION SetSingularConstraint(

typeOfConstraint :INTEGER;

h :HANDLE;

vertexA :INTEGER;

vertexB :INTEGER) : BOOLEAN;

def vs.SetSingularConstraint(typeOfConstraint, h, vertexA, vertexB): return BOOLEAN

## Parameters

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.