Role: To access the data of the hybrid shape blended surface object.
This data includes:
- Two support surfaces, one at each limit of the blended surface
- Two curves, one for each support surface
- The curve closing points
Use the CATIAHybridShapeFactory to create a HybridShapeBlend object.
- See also:
Properties
- Property Coupling() As
-
Returns or sets the type of coupling between the limits of the blend.
Legal values: The values representing the type of coupling can be:- 1
- Ratio: the curves are coupled according to the curvilinear abscissa ratio
- 2
- Tangency: the curves are coupled according to their tangency discontinuity points. If they do not have the same number of tangency discontinuity points, they cannot be coupled and an error message is displayed
- 3
- Tangency then curvature: the curves are coupled according to their tangency discontinuity points first, then according to their curvature discontinuity points. If they do not have the same number of tangency and curvature discontinuity points, they cannot be coupled and an error message is displayed
- 4
- Vertices: the curves are coupled according to their vertices. If they do not have the same number of vertices, they cannot be coupled and an error message is displayed
- 5
- Spine: coupling is completely driven by a curve (called spine)
- Example:
-
This example retrieves in
CouplingValthe coupling value of theShpBlendhybrid shape blended feature.CouplingVal = ShpBlend.Coupling
- Property RuledDevelopableSurface() As
-
Returns or sets the ruled developable surface mode.
TRUE means that the mode is enabled and FALSE means that it is disabled. - Property SmoothAngleThreshold() As (Read Only)
- Returns the angular threshold.
- Property SmoothAngleThresholdActivity() As
-
Returns or sets information whether a blending operation is smoothed or not.
TRUE if the blending operation is smoothed, or FALSE otherwise (FALSE if not specified). - Property SmoothDeviation() As (Read Only)
- Returns the deviation value (length) from guide curves allowed during a sweeping operation in order to smooth it.
- Property SmoothDeviationActivity() As
-
Returns or sets information whether a deviation from guide curves is allowed or not.
Gives the information on performing smoothing during blending operation.
TRUE if a deviation from guide curves is allowed, or FALSE otherwise (FALSE if not specified). - Property Spine() As
-
Returns or sets a curve used as spine for coupling in Blend computation.
Setting the spine curve also changes coupling mode to CATGSMSpineCoupling.
In order to remove the spine, set another coupling mode.
- Parameters:
-
- iSpine
- spine curve dd>
Methods
- Func GetBorderMode( iBlendLimit) As
-
Returns the type of border to a limit of the blend.
- Parameters:
-
- iBlendLimit
- The limit of the blend whose type of border is to be retrieved.
Legal values: 1 for the first limit, and 2 for the second one dd>
- Returns:
- The type of border
Legal values:- 1
- The border of the blend will be tangent to the border of the support surface, or if the curve ends on the border of a face of the support surface, then the border of the blend will be tangent to the border face.
- 2
- The border of the blend is not constrained.
- Example:
-
This example retrieves in
BorderTypethe type of border of the first limit of theShpBlendhybrid shape blended feature.BorderType = ShpBlend.GetBorderMode(1)
- Parameters:
-
- iBlendLimit
- The limit of the blend whose curve closing point is returned.
Legal values: 1 for the first curve, and 2 for the second one dd>
- Returns:
- The retrieved closing point
ClosingPoint the closing point of the curve
of the second limit
of the ShpBlend hybrid shape blended feature.
Dim ClosingPoint As Reference ClosingPoint = ShpBlend.GetClosingPoint(2)dd>
- Parameters:
-
- iBlendLimit
- The limit of the blend whose continuity is to be retrieved.
Legal values: 1 for the first limit, and 2 for the second one dd>
- Returns:
- The retrieved continuity.
Legal values:- 0
- Point continuity
- 1
- Tangency continuity
- 2
- Curvature continuity
Continuity the continuity of the second limit
of the ShpBlend hybrid shape blended feature.
Continuity = ShpBlend.GetContinuity(2)dd>
- Parameters:
-
- iBlendLimit
- The limit of the blend from which the curve will be retrieved.
Legal values: 1 for the first curve, and 2 for the second one dd>
- Returns:
- The retrieved curve
BlendCurve the curve of the second limit
of the ShpBlend hybrid shape blended feature.
Dim BlendCurve As Reference BlendCurve = ShpBlend.GetCurve(2)dd>
- Parameters:
-
- iBlendLimit
- The limit of the blend whose curve orientation is to be retrieved.
Legal values: 1 for the first curve, and 2 for the second one dd>
- Returns:
- The orientation to set to the curve.
Legal values: 1 for direct and -1 for reverse
Orientation the orientation of the second limit
of the ShpBlend hybrid shape blended feature.
Orientation = ShpBlend.GetOrientation(2)dd>
- Parameters:
-
- iBlendLimit
- The limit of the blend for which the connection type is to be set.
Legal values: 1 for the start limit, and 2 for the end one dd> - oBlendConnection
- The value of connection type
Legal values:- 1
- Connect to both extremities
- 2
- Free first curve
- 3
- Free second curve
- Parameters:
-
- iBlendLimit
- The limit of the blend whose support is to be retrieved.
Legal values: 1 for the first support, and 2 for the second one dd>
- Returns:
- The retrieved support surface
SupportSurf the support surface of the second limit
of the ShpBlend hybrid shape blended feature.
Dim SupportSurf As Reference SupportSurf = ShpBlend.GetSupport(2)dd>
- Parameters:
-
- iBlendLimit
- The limit of the blend from which the tension type and values are to be retrieved.
Legal values: 1 for the first limit, and 2 for the second one dd> - iRank
- The rank of the value to retrieve among those available, depending on the tension type.
Legal values: iRank can take the following values:- 1
- With default tension and constant tension, for the unique available value, and with linear tension for the first value
- 2
- With linear tension for the second value
- Returns:
- The retrieved tension value
TensionVal the tension value
of the tension, supposed to be a constant tension, of the first limit
of the ShpBlend hybrid shape blended feature.
Dim ConstTensionVal As RealParam Set ConstTensionVal = ShpBlend.GetTensionInDouble(1, 1)dd>
- Parameters:
-
- iBlendLimit
- The limit of the blend from which the tension type is to be retrieved.
Legal values: 1 for the first limit, and 2 for the second one dd>
- Returns:
- The value of tension type
Legal values:- 1
- Default tension
- 2
- Constant tension
- 3
- Linear tension
TensionType the tension type
of the first limit
of the ShpBlend hybrid shape blended feature.
TensionType.GetTensionType(1)dd>
Let T be the tangent to the wire, and N be the normal to the skin body. The transition orientation defines how the blend goes from the initial wires: it takes the direction of iTransition*(T^N), where ^ is the cross product.
- Parameters:
-
- iBlendLimit
- The limit of the blend whose transition orientation is to be retrieved.
Legal values: 1 for the first support, and 2 for the second one dd>
- Returns:
- The retrieved value of transition orientation.
Legal values: 1 for direct and -1 for reverse
TransOrientation the transition orientation
of the second limit
of the ShpBlend hybrid shape blended feature.
TransOrientation = ShpBlend.GetTransition(2)dd>
If the support is set to be trimmed, it will be trimmed using the curve then joined to the blend.
- Parameters:
-
- iBlendLimit
- The limit of the blend whose support is to be trimmed.
Legal values: 1 for the first limit, and 2 for the second one dd>
- Returns:
- The trim support mode
Legal values:- 1
- No trim
- 2
- The support will be trimmed
ShpBlend hybrid shape blended feature should be trimmed off.
IsTrimmed = ShpBlend.GetTrimSupport(2)dd>
- Parameters:
-
- iPosition
- The position of the coupling in the list of couplings. Setting iPosition to 0 inserts the coupling at the end of the list.
- Example:
-
This example inserts a coupling at the end of the coupling list
of the
ShpBlendhybrid shape blended feature.ShpBlend.InsertCouplingt 0
- Parameters:
-
- iCouplingIndex
- The index of the coupling in the list of couplings into which the coupling point will be inserted. dd>
- iPosition
- The position of the coupling point in the list of coupling points. Setting iPosition to 0 inserts the coupling point at the end of the list. dd>
- iPoint
- The coupling point to be inserted.
This point must lay on the section with the same position.
Sub-element(s) supported (see object): .
- Example:
-
This example inserts the
Point23point into the third coupling at the end of the list of coupling points of theShpBlendhybrid shape blended feature.ShpBlend.InsertCouplingPoint 3, 0, Point23
- Parameters:
-
- iBlendLimit
- The limit of the blend whose type of border is to be set.
Legal values: 1 for the first limit, and 2 for the second one dd> - iBorder
- The type of border
Legal values:- 1
- The border of the blend will be tangent to the border of the support surface, or if the curve ends on the border of a face of the support surface, then the border of the blend will be tangent to the border face.
- 2
- The border of the blend is not constrained.
- 3
- The border of the blend will be tangent to the border of the support surface at the start extremity of the curve, or if the curve ends on the border of a face of the support surface, then the border of the blend will be tangent to the border face at the start extremity of the curve.
- 4
- The border of the blend will be tangent to the border of the support surface at the end extremity of the curve, or if the curve ends on the border of a face of the support surface, then the border of the blend will be tangent to the border face at the end extremity of the curve.
- Example:
-
This example sets the type of border of the second limit
of the
ShpBlendhybrid shape blended feature to "no constraint".ShpBlend.SetBorderMode 2, 2
- Parameters:
-
- iBlendLimit
- The limit of the blend whose curve will be set a new closing point.
Legal values: 1 for the first curve, and 2 for the second one dd> - iClosingPoint
- The closing point to be set.
This point must lay on the curve of the blend limit.
Sub-element(s) supported (see object): .
- Example:
-
This example sets the
Point10point as the closing point to the second limit of theShpBlendhybrid shape blended feature.ShpBlend.SetClosingPoint 2, Point10
- Parameters:
-
- iBlendLimit
- The limit of the blend whose continuity is to be set.
Legal values: 1 for the first limit, and 2 for the second one dd> - iContinuity
- The continuity to set
Legal values:- 0
- Point continuity
- 1
- Tangency continuity
- 2
- Curvature continuity
- Example:
-
This example sets the continuity of the second limit
of the
ShpBlendhybrid shape blended feature to tangency continuity.ShpBlend.SetContinuity 2, 1
dd>
- Parameters:
-
- iBlendLimit
- The limit of the blend to which the curve will be set.
Legal values: 1 for the first curve, and 2 for the second one dd> - iCurve
- The curve to be set.
Sub-element(s) supported (see object): and .
- Example:
-
This example sets the
CurveForBlendcurve to the second limit of theShpBlendhybrid shape blended feature.ShpBlend.SetCurve 2, CurveForBlend
- Parameters:
-
- iBlendLimit
- The limit of the blend whose curve orientation is to be set.
Legal values: 1 for the first curve, and 2 for the second one dd> - iOrientation
- The orientation to set to the curve.
Legal values: 1 for direct and -1 for reverse
- Example:
-
This example sets the orientation of the second limit
of the
ShpBlendhybrid shape blended feature to direct.ShpBlend.SetOrientation 2, 1
- Parameters:
-
- iAngle
- The angular threshold dd>
- Parameters:
-
- iLength
- The deviation value dd>
- Parameters:
-
- iBlendLimit
- The limit of the blend whose support is to be set.
Legal values: 1 for the first support, and 2 for the second one dd> - iSupport
- The support surface to be set.
The curve of the blend limit must lay on the surface.
Sub-element(s) supported (see object): .
- Example:
-
This example sets the
SupportSurfsurface as the support of the second limit of theShpBlendhybrid shape blended feature.ShpBlend.SetSupport 2, SupportSurf
- Parameters:
-
- iBlendLimit
- The limit of the blend to which the tension values are to be set.
Legal values: 1 for the first limit, and 2 for the second one dd> - iTensionType
- The tension type
Legal values:- 1
- Default tension
- 2
- Constant tension
- 3
- Linear tension
- iFirstTension
- The value for the first tension. It must be used with any tension type
Legal values: it must be a double and positive. dd> - iSecondTension
- The value for the second tension. It can be used with linear tension only
Legal values: it must be a double and positive.
- Example:
-
This example sets the tension values
of the tension, supposed to be a linear tension, of the first limit
of the
ShpBlendhybrid shape blended feature to respectively 1.5 and 0.5.ShpBlend.SetTensionInDouble 1, 3, 1.5, 0.5
- Parameters:
-
- iBlendLimit
- The limit of the blend for which the tension type is to be set.
Legal values: 1 for the first limit, and 2 for the second one dd> - iBlendLimit
- The value of tension type
Legal values:- 1
- Default tension
- 2
- Constant tension
- 3
- Linear tension
- 4
- SType tension
- Example:
-
This example sets the tension type as Default Tension for the first limit
of the
ShpBlendhybrid shape blended feature.ShpBlend.SetTensionType 1, 1
Role: Let T be the tangent to the wire, and N be the normal to the skin body. The transition orientation defines how the blend goes from the initial wires: it takes the direction of iTransition*(T^N), where ^ is the cross product.
- Parameters:
-
- iBlendLimit
- The limit of the blend whose transition orientation is to be set.
Legal values: 1 for the first support, and 2 for the second one dd> - iTransition
- The value of transition orientation.
Legal values: 1 for direct and -1 for reverse
- Example:
-
This example sets the transition orientation of the second limit
of the
ShpBlendhybrid shape blended feature to reverse.ShpBlend.SetTransition 2, -1
If the support is set to be trimmed, it will be trimmed using the curve then joined to the blend.
- Parameters:
-
- iBlendLimit
- The limit of the blend whose support is to be trimmed.
Legal values: 1 for the first limit, and 2 for the second one dd> - iTrimSupport
- The trim support mode
Legal values:- 1
- No trim
- 2
- The support will be trimmed
- Example:
-
This example sets that the second limit
of the
ShpBlendhybrid shape blended feature should be trimmed off.ShpBlend.SetTrimSupport 2, 2
- Parameters:
-
- iBlendLimit
- The limit of the blend whose curve closing point is unset.
Legal values: 1 for the first curve, and 2 for the second one
- Example:
-
This example unsets the closing point of the second limit
of the
ShpBlendhybrid shape blended feature.ShpBlend.UnsetClosingPoint 2
- Parameters:
-
- iBlendLimit
- The limit of the blend whose support is to be unset.
Legal values: 1 for the first support, and 2 for the second one
- Example:
-
This example unsets the support surface of the second limit
of the
ShpBlendhybrid shape blended feature.ShpBlend.UnsetSupport 2