DeleteConstraint Parametric Constraints 

Declaration:

PROCEDURE   DeleteConstraint
(   obj :HANDLE;
    constraint :HANDLE
) ;

Description:

Removes a constraint from the referenced object in the document.

Parameters:

obj Handle to object.
constraint Handle to constraint being deleted.



  GetBinaryConstraint Parametric Constraints 

Declaration:

FUNCTION   GetBinaryConstraint
(   constrType :INTEGER;
    obj1 :HANDLE;
    obj2 :HANDLE;
    obj1VertA :INTEGER;
    obj1VertB :INTEGER;
    obj2VertA :INTEGER;
    obj2VertB :INTEGER;
    containedObj1 :LONGINT;
    containedObj2 :LONGINT
) :HANDLE ;

Description:

Returns a handle to a binary parametric constraint applied to the referenced objects.

Table - Binary Constraint Types

Index
Constraint Type
1
coincident
2
collinear
3
parallel
6
tangent
7
concentric
8
distance
9
horizontal distance
10
vertical distance
12
angle
13
perpendicular

Parameters:

constrType Type of constraint to be returned.
obj1 Handle to first object in constraint relationship.
obj2 Handle to second object in constraint relationship.
obj1VertA Vertex defining the constraint geometry of first object.
obj1VertB Vertex defining the constraint geometry of first object.
obj2VertA Vertex defining the constraint geometry of second object.
obj2VertB Vertex defining the constraint geometry of second object.

Result:

Returns a HANDLE to the constraint if exists, otherwise returns NIL.



  GetSingularConstraint Parametric Constraints 

Declaration:

FUNCTION   GetSingularConstraint
(   typeOfConstraint :INTEGER;
    obj :HANDLE;
    vertexA :INTEGER;
    vertexB :INTEGER
) :HANDLE ;

Description:

Returns the type of constraint applied to the referenced object.

Table - Constraint Types

Index
Constraint Type
4
Vertical
5
Horizontal
8
Distance
9
Vertical distance
10
Horizontal distance
11
Radius

Parameters:

typeOfConstraint Type of constraint to be returned.
obj Handle to object.
vertexA Vertex defining the constraint geometry.
vertexB Vertex defining the constraint geometry.

Result:

Returns a HANDLE to the constraint if exists, otherwise returns NIL.



  HasConstraint Parametric Constraints 

Declaration:

FUNCTION   HasConstraint
( h:HANDLE ) :BOOLEAN ;

Description:

Returns whether the referenced object has a parametric constraint .

Parameters:

h Handle to object.



  SetBinaryConstraint Parametric Constraints 

Declaration:

FUNCTION   SetBinaryConstraint
(   typeOfConstraint :INTEGER;
    h1 :HANDLE;
    h2 :HANDLE;
    obj1VertA :INTEGER;
    obj1VertB :INTEGER;
    obj2VertA :INTEGER;
    obj2VertB :INTEGER;
    containedObj1 :LONGINT;
    containedObj2 :LONGINT
) :BOOLEAN ;

Description:

Applies a binary parametric constraint to the referenced objects. The geometry of the constraint is defined by the specified object vertices.

Table - Binary Constraint Types

Index
Constraint Type
1
coincident
2
collinear
3
parallel
6
tangent
7
concentric
8
distance
9
horizontal distance
10
vertical distance
12
angle
13
perpendicular


To apply a constraint to an object within a symbol, use GetClosestPt to obtain an index to the object and pass the index to either obj2VertA to use it as the first object or obj2VertB to use it as the second object. In all other instances, pass 0 to both these parameters.

Parameters:

typeOfConstraint Type of constraint to be applied.
h1 Handle to object accepting constraint.
h2 Handle to object accepting constraint.
obj1VertA Vertex on first object defining constraint geometry.
obj1VertB Vertex on first object defining constraint geometry.
obj2VertA Vertex on second object defining constraint geometry.
obj2VertB Vertex on second object defining constraint geometry.
containedObj1 Object index, obtained from the GetClosestPt function.
containedObj2 Object index, obtained from the GetClosestPt function.

Result:

Returns a BOOLEAN value indicating whether the constraint was successfully applied.



  SetConstraintValue Parametric Constraints 

Declaration:

PROCEDURE   SetConstraintValue
(   constraint :HANDLE;
    value :REAL
) ;

Description:

Sets the referenced dimensional constraint to a new value.

Parameters:

constraint Handle to constraint being modified.
value New value for the constraint.



  SetSingularConstraint Parametric Constraints 

Declaration:

FUNCTION   SetSingularConstraint
(   typeOfConstraint :INTEGER;
    h :HANDLE;
    vertexA :INTEGER;
    vertexB :INTEGER
) :BOOLEAN ;

Description:

Applies a parametric constraint to the referenced object. The geometry of the constraint is defined by the specified object vertices.

Table - Constraint Types

Index
Constraint Type
4
Vertical
5
Horizontal
8
Distance
9
Vertical distance
10
Horizontal distance
11
Radius

Parameters:

typeOfConstraint Type of constraint to be applied.
h Handle to object accepting constraint.
vertexA Vertex defining the constraint geometry.
vertexB Vertex defining the constraint geometry.

Result:

Returns a BOOLEAN value indicating whether the constraint was applied successfully.



  SheetList Parametric Constraints 

Declaration:

FUNCTION   SheetList
( sheetIndex:INTEGER ) :STRING ;

Description:

Returns the name of the sheet specified by index.

Parameters:

sheetIndex Index of the sheet

Result:

Returns a string containing the name of the sheet.

See Also:

SheetNum