Role: To access the data of the hybrid shape ExtractMulti feature object.
Use the CATIAHybridShapeFactory to create a HybridShapeExtractMulti object.
- See also:
Methods
- Sub AddConstraint( iConstraint, iType, iComplementaire, iIsFederated, iCrvtreThsld, iPos)
-
- Deprecated:
- V5R16 CATIAHybridShapeExtractMulti#AddConstraintTolerant Adds a constraint to the list of Extracted Elements. dd>
- Parameters:
-
- iConstraint
- The constraint to add. dd>
- iType
- the type of propagation for the ExtractMulti. dd>
- iComplementaire
- the Complementary flag checked/unchecked for for the constraint. dd>
- iIsFederated
- the Federated flag checked/unchecked for the constraint. dd>
- iCrvtreThsld
- the CurvatureThreshold for the constraint. dd>
- iPos
- The position at which the element is to be added in the list of constraints.
- Example:
-
This example adds a body in the list of constraints at specified position
with the type of propagation, the Federated flag and the CurvatureThreshold
of the
HybShpExtractMultihybrid shape ExtractMulti.Dim iType as long Dim iComplementaire as boolean Dim iIsFederated as boolean Dim iCrvtreThsld as double HybShpExtractMulti.AddConstraint iCst iType iComplementaire iIsFederated iCrvtreThsld 1
- Sub AddConstraintTolerant( iConstraint, iType, iComplementaire, iIsFederated, iDistreThsld, iAngtreThsld, iCrvtreThsld, iPos)
-
Adds a constraint to the list of Extracted Elements.
- Parameters:
-
- iConstraint
- The constraint to add. dd>
- iType
- the type of propagation for the ExtractMulti. dd>
- iComplementaire
- the Complementary flag checked/unchecked for for the constraint. dd>
- iIsFederated
- the Federated flag checked/unchecked for the constraint. dd>
- iDistreThsld
- the DistanceThreshold for the constraint. dd>
- iAngtreThsld
- the AngularThreshold for the constraint. dd>
- iCrvtreThsld
- the CurvatureThreshold for the constraint. dd>
- iPos
- The position at which the element is to be added in the list of constraints.
- Example:
-
This example adds a body in the list of constraints at specified position
with the type of propagation, the Federated flag and the CurvatureThreshold
of the
HybShpExtractMultihybrid shape ExtractMulti.Dim iType as long Dim iComplementaire as boolean Dim iIsFederated as boolean Dim iDistreThsld as double Dim iAngtreThsld as double Dim iCrvtreThsld as double HybShpExtractMulti.AddConstraintTolerant iCst iType iComplementaire iIsFederated iCrvtreThsld 1
- Func GetAngularThreshold( iPos) As
-
Returns the AngularThreshold of the list of constraints at specified position.
- Example:
-
This example retrieves the AngularThreshold in the list of constraints at specified position of
the
hybShpExtractMultiinAngularThH.Dim oAngtreThsld as double AngularThH = HybShpExtractMulti.GetAngularThreshold(1)
- Func GetAngularThresholdActivity( iPos) As
-
Returns the AngularThresholdActivity of the list of constraints at specified position.
- Example:
-
This example retrieves the AngularThresholdActivity of the list of constraints at specified position of
the
hybShpExtractMultiinAngularActivity.Dim oAngtreThsldActivity as boolean oAngtreThsldActivity = HybShpExtractMulti.GetAngularThresholdActivity (1)
- Func GetComplementaryExtractMulti( iPos) As
-
Returns the Complementary flag checked/unchecked of the list of constraints at specified position.
- Example:
-
This example retrieves the Complementary flag in the list of constraints at specified position of
the
hybShpExtractMultiinComplementaire.Dim oComplementaire as boolean oComplementaire = HybShpExtractMulti.GetComplementaryExtractMulti(1)
- Func GetCurvatureThreshold( iPos) As
-
Returns the CurvatureThreshold of the list of constraints at specified position.
- Example:
-
This example retrieves the CurvatureThreshold in the list of constraints at specified position of
the
hybShpExtractMultiinCurvatureThH.Dim oCrvtreThsld as double CurvatureThH = HybShpExtractMulti.GetCurvatureThreshold(1)
- Func GetCurvatureThresholdActivity( iPos) As
-
Returns the CurvatureThresholdActivity of the list of constraints at specified position.
- Example:
-
This example retrieves the CurvatureThresholdActivity of the list of constraints at specified position of
the
hybShpExtractMultiinCurvatureActivity.Dim oCrvtreThsldActivity as boolean oCrvtreThsldActivity = HybShpExtractMulti.GetCurvatureThresholdActivity (1)
- Func GetDistanceThreshold( iPos) As
-
Returns the DistanceThreshold of the list of constraints at specified position.
- Example:
-
This example retrieves the DistanceThreshold in the list of constraints at specified position of
the
hybShpExtractMultiinDistanceThH.Dim oDistreThsld as double DistanceThH = HybShpExtractMulti.GetDistanceThreshold(1)
- Func GetDistanceThresholdActivity( iPos) As
-
Returns the DistanceThresholdActivity of the list of constraints at specified position.
- Example:
-
This example retrieves the DistanceThresholdActivity of the list of constraints at specified position of
the
hybShpExtractMultiinDistanceActivity.Dim oDistreThsldActivity as boolean oDistreThsldActivity = HybShpExtractMulti.GetDistanceThresholdActivity (1)
- Func GetElement( iPos) As
-
Returns the sub element used as init for the propagation.
- Example:
-
This example retrieves the sub element in the list of constraints at specified position of
the
hybShpExtractMultiinElem.Dim oElem as CATIAReference oElem = HybShpExtractMulti.GetElement(1)
- See also:
- Func GetIsFederated( iPos) As
-
Returns the IsFederated flag checked/unchecked of the list of constraints at specified position.
- Example:
-
This example retrieves the federated flag in the list of constraints at specified position of
the
hybShpExtractMultiinIsFederated.Dim oIsFederated as boolean oIsFederated = HybShpExtractMulti.GetIsFederated(1)
- Sub GetListOfConstraints( oListOfExtractedConstraints)
-
Returns the list of Extracted Elements.
- Parameters:
-
- oListOfExtractedConstraints
- The list of constraints. It is returned as an array of nbconstraints in SafeArrayVariant.
- Example:
-
This example returns the list of constraints
of the
HybShpExtractMultihybrid shape ExtractMulti.Dim oListOfExtractedConstraints as CATSafeArrayVariant HybShpExtractMulti.GetListOfConstraints (oListOfExtractedConstraints)
Note: You can access each constraint as follows:
1is inoListOfExtractedConstraints(0)2is inoListOfExtractedConstraints(1)nbconstraintsis inoListOfExtractedConstraints(nbconstraints-1)
- Sub GetNbConstraints( oNbConstraints)
-
Returns number of constraints in the list of Extracted Elements.
- Parameters:
-
- oNbConstraints
- number of constraints in the list of Extracted Elements.
- Example:
-
This example returns number of constraints in the list of constraints
of the
HybShpExtractMultihybrid shape ExtractMulti.Dim oNbConstraints as long HybShpExtractMulti.GetNbConstraints (oNbConstraints )
- Func GetPropagationType( iPos) As
-
Returns the type of propagation of the list of constraints at specified position.
The propagation types for the ExtractMulti can have the following values:- 1 for extraction propagation in point continuity
- 2 for extraction propagation in tangent continuity
- 3 for extraction without propagation
- 4 for extraction propagation in curvature continuity
- Example:
-
This example retrieves the PropagationType in the list of constraints at specified position of
the
hybShpExtractMultiinTypePropag.Dim oTypePropag as long oTypePropag = HybShpExtractMulti.GetPropagationType(1)
- Func GetSupport( iPos) As
-
Returns the support of the list of constraints at specified position.
- Parameters:
-
- oSupport
- The support. dd>
- Sub RemoveElement( iPosition)
-
Removes the body to be extracted from the list of constraints at specified position.
- Parameters:
-
- iPosition
- Position at which the body is to be removed
- Example:
-
This example removes the body from the list of constraints at specified position
of the
HybShpExtractMultihybrid shape ExtractMulti.HybShpExtractMulti.RemoveElement 1
- Sub ReplaceElement( iExtractToReplace, iNewExtract, iPos)
-
Replaces an element to extract in the list of constraints at specified position.
- Parameters:
-
- iExtractToReplace
- The element to replace. dd>
- iNewExtract
- The new element. dd>
- iPos
- The position at which the element is to be replaced in the list of constraints.
- Example:
-
This example replaces the body from the list of constraints at specified position
of the
HybShpExtractMultihybrid shape ExtractMulti.Dim RefToRep as CATIAReference Dim RefNewExtract as CATIAReference HybShpExtractMulti.ReplaceElement RefToRep RefNewExtract 1
- Sub SetAngularThreshold( iPos, iAngtreThsld)
-
Sets the AngularThreshold in the list of constraints at specified position.
- Example:
-
This example sets the AngularThreshold of the list of constraints at specified position of
the
hybShpExtractMultiinAngularThH.Dim iAngtreThsld as double HybShpExtractMulti.SetAngularThreshold 1 iAngtreThsld
- Sub SetAngularThresholdActivity( iPos, iAngtreThsldActivity)
-
Sets the AngularThresholdActivity in the list of constraints at specified position.
- Example:
-
This example sets the AngularThresholdActivity in the list of constraints at specified position of
the
hybShpExtractMultiinAngularActivity.Dim iAngtreThsldActivity as boolean iAngtreThsldActivity = TRUE HybShpExtractMulti.SetAngularThresholdActivity 1 iAngtreThsldActivity
- Sub SetComplementaryExtractMulti( iPos, iComplementaire)
-
Sets the Complementary flag checked/unchecked in the list of constraints at specified position.
- Example:
-
This example sets the Complementary flag of the list of constraints at specified position of
the
hybShpExtractMultiinComplementaire.Dim iComplementaire as boolean iComplementaire = TRUE HybShpExtractMulti.SetComplementaryExtractMulti 1 iComplementaire
- Sub SetCurvatureThreshold( iPos, iCrvtreThsld)
-
Sets the CurvatureThreshold in the list of constraints at specified position.
- Example:
-
This example sets the CurvatureThreshold of the list of constraints at specified position of
the
hybShpExtractMultiinCurvatureThH.Dim iCrvtreThsld as double HybShpExtractMulti.SetCurvatureThreshold 1 iCrvtreThsld
- Sub SetCurvatureThresholdActivity( iPos, iCrvtreThsldActivity)
-
Sets the CurvatureThresholdActivity in the list of constraints at specified position.
- Example:
-
This example sets the CurvatureThresholdActivity in the list of constraints at specified position of
the
hybShpExtractMultiinCurvatureActivity.Dim iCrvtreThsldActivity as boolean iCrvtreThsldActivity = TRUE HybShpExtractMulti.SetCurvatureThresholdActivity 1 iCrvtreThsldActivity
- Sub SetDistanceThreshold( iPos, iDistreThsld)
-
Sets the DistanceThreshold in the list of constraints at specified position.
- Example:
-
This example sets the DistanceThreshold of the list of constraints at specified position of
the
hybShpExtractMultiinDistanceThH.Dim iDistreThsld as double HybShpExtractMulti.SetDistanceThreshold 1 iDistreThsld
- Sub SetDistanceThresholdActivity( iPos, iDistreThsldActivity)
-
Sets the DistanceThresholdActivity in the list of constraints at specified position.
- Example:
-
This example sets the DistanceThresholdActivity in the list of constraints at specified position of
the
hybShpExtractMultiinDistanceActivity.Dim iDistreThsldActivity as boolean iDistreThsldActivity = TRUE HybShpExtractMulti.SetDistanceThresholdActivity 1 iDistreThsldActivity
- Sub SetElement( iPos, iElem)
-
Sets the sub element used as init for the propagation.
- Example:
-
This example sets the sub element in the list of constraints at specified position of
the
hybShpExtractMultiinElem.Dim iPos as long Dim iElem as CATIAReference HybShpExtractMulti.SetElement 1 iElem
- See also:
- Sub SetIsFederated( iPos, iIsFederated)
-
Sets the IsFederated flag checked/unchecked in the list of constraints at specified position.
- Example:
-
This example sets the federated flag in the list of constraints at specified position of
the
hybShpExtractMultiinIsFederated.Dim iIsFederated as boolean iIsFederated = TRUE HybShpExtractMulti.SetIsFederated 1 iIsFederated
- Sub SetPropagationType( iPos, iTypePropag)
-
Sets the type of propagation for the ExtractMulti in the list of constraints at specified position.
The propagation types for the ExtractMulti can have the following values:- 1 for extraction propagation in point continuity
- 2 for extraction propagation in tangent continuity
- 3 for extraction without propagation
- 4 for extraction propagation in curvature continuity
- Example:
-
This example sets the PropagationType of the list of constraints at specified position of
the
hybShpExtractMultiinTypePropag.Dim iTypePropag as long iTypePropag = 1 HybShpExtractMulti.SetPropagationType 1 iTypePropag
- Sub SetSupport( iPos, iSupport)
-
Sets the support of the list of constraints at specified position.
- Parameters:
-
- oSupport
- The support. dd>