CATSketcherUseItf Interface CATISktUse2DConstraintFactory
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATISktUse2DConstraintFactory
Method Index
- o
CreateConstraint(CATBaseUnknown*,double*,CATBaseUnknown*,double*,CATBaseUnknown*,double*,CATBaseUnknown*,CAT2DCstType,int,int)
- Creates a constraint.
Methods
o CreateConstraint
public virtual CreateConstraint( | | iElem1, |
| const | iSelPt1, |
| | iElem2, |
| const | iSelPt2, |
| | iElem3, |
| const | iSelPt3, |
| | iDirection, |
| const | iCstType, |
| const | iDriven | =0, |
| const | iEvaluation | =1) |
-
Creates a constraint.
- Parameters:
-
- iElem1
- [in] Address of the first geometrical element.
- iSelPt1
- [in] If the geometry is a curve, pass the 2D selection coordinates of the curve
expressed according to the sketch system of reference.
Else, pass NULL.
(This entry serves as the initialization point of the resolution. If no information is passed,
the system will evaluate one automatically. However, the returned solution (location where the
constraint on the curve will be solved) can be unexpected for the user).
- iElem2
- [in] Address of the second geometrical element.
Pass NULL if necessary (e.g. for a length constraint, only iElem1 should be valuated).
- iSelPt2
- [in] If the geometry is a curve, pass the 2D selection coordinates of the curve
expressed according to the sketch system of reference.
Else, pass NULL.
(This entry serves as the initialization point of the resolution. If no information is passed,
the system will evaluate one automatically. However, the returned solution (location where the
constraint on the curve will be solved) can be unexpected for the user).
- iElem3
- [in] Address of the third geometrical element.
Pass NULL if necessary.
- iSelPt3
- [in] If the geometry is a curve, pass the 2D selection coordinates of the curve
expressed according to the sketch system of reference.
Else, pass NULL.
(This entry serves as the initialization point of the resolution. If no information is passed,
the system will evaluate one automatically. However, the returned solution (location where the
constraint on the curve will be solved) can be unexpected for the user).
- iDirection
- [in] Address of a geometrical element of the line type to create an oriented dimension.
(e.g. vertical if the V direction of the sketch absolute axis is passed, or horizontal if the
H direction is passed).
- iCstType
- [in] Type of the constraint to create.
- iDriven
- [in] The default value 0 corresponds to a driving dimension. If <> 0, if will be a measured
dimension (reference constraint).
- iEvaluation
- [in] The default value 1 implies a solver evaluation after the constraint is created.
If several constraints must be created successively, you can run explicitly a final evaluation by
setting the value to 0.
This object is included in the file: CATISktUse2DConstraintFactory.h
If needed, your Imakefile.mk should include the module: CATSketcherUseItf
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.