All Frameworks  Class Hierarchy  This Framework  Indexes

CATAssemblyInterfaces Global Function CreateConstraint


HRESULT CreateConstraint(CatConstraintType iConstraintType,
const CATLISTV(CATBaseUnknown_var)& iConnectorList,
CATICkeParm* iCkeValue,
CATIProduct* iReferenceProduct,
CATICst** ioConstraint)
Creates a constraint.
Parameters:
iConstraintType

Legal values:
catCstTypeReference = Fix Constraint
catCstTypeDistance = Offset Constraint
catCstTypeOn = Coincidence Constraint
catCstTypeAngle = Angle Constraint
catCstTypePlanarAngle = Planar Angle Constraint
catCstTypeParallelism = Parallelism Constraint
catCstTypePerpendicularity = Perpendicularity Constraint
catCstTypeSurfContact = Surface Contact Constraint
catCstTypeLinContact = Line Contact Constraint
catCstTypePoncContact = Point Contact Constraint
catCstTypeAnnulContact = Line (Annular) Contact Constraint
iConnectorList
a list of connectors referencing the geometry involved in the relation.
iCkeValue
The value associated to the constraint (offset,angle...)
iReferenceProduct
The product identifies the document where the constraint will be created. This product was used when you have created the connectors involved in this constraint.
oConstraint
The resulting constraint

This object is included in the file: CATAsmConstraintServices.h

Copyright © 2003, Dassault Systèmes. All rights reserved.