Role: To access the data of the hybrid shape sweep explicit feature object.
LICENSING INFORMATION: Creation of volume result requires GSO License
if GSO License is not granted , settting of Volume context has not effect
- See also:
Properties
- Property AngleLaw() As
-
Returns or sets the angle law feature associated to the reference surface.
- Parameters:
-
- oElem
- Angle law element. return value for CATScript applications, with (IDLRETVAL) function type dd>
- See also:
- See also:
- Property AngleLawInversion() As
-
Returns or sets the angle law inversion information.
- Parameters:
-
- oElem
- Angle law inversion information. dd>
- See also:
- Property AngleLawType() As
-
Returns or sets the angle law type associated to the reference surface.
- Parameters:
-
- oElem
- Angle law type. dd>
- See also:
- Property CanonicalDetection() As
-
Returns or sets whether canonical surfaces of the swept surface are detected.
Legal values:0 No detection of canonical surface is performed. 2 Detection of canonical surfaces is performed. - Property Context() As
-
Returns or sets the context on Sweep feature.
- 0 This option creates Swept surface.
- 1 This option creates Swept volume.
Note: Setting volume result requires GSO License.- Example:
-
This example retrieves in
oContextthe context for theSweephybrid shape feature.Dim oContext Set oContext = Sweep.Context
- Property FirstGuideCrv() As
-
Gets the first guide curve.
- Parameters:
-
- oElem
- Guide curve. return value for CATScript applications, with (IDLRETVAL) function type dd>
- See also:
- Returns:
- HRESULT S_OK if Ok E_FAIL else return error code for C++ Implementations dd>
- See also:
- Property GuideDeviation() As (Read Only)
- Returns deviation value (length) from guide curves allowed during sweeping operation in order to smooth it.
- Property GuideDeviationActivity() As
-
Returns or sets information whether a deviation from guide curves is allowed or not.
Gives the information on performing smoothing during sweeping operation.
TRUE or FALSE (FALSE if not specified). - Property GuideProjection() As
-
Returns or sets the projection of the guide curve onto the reference plane in order
to use it as spine, in pulling direction case only.
Removes Spine if GuideProjection is set to TRUE.
Legal values: True projection is required and False if not- Example:
-
This example sets that the GuideProjection mode of the
Sweephybrid shape sweep explicit feature to True.Sweep.GuideProjection = True
- Property Mode() As
-
Returns or sets positioning mode used for the profile.
- Parameters:
-
- oElem
-
Values :
= 1 - CATGSMPositionMode_NoneOrPositioned : no positioning,
= 2 - CATGSMPositionMode_ExplicitSweep : the explicit profile is to be moved from its initial plane to the first sweep plane,
= 3 - CATGSMPositionMode_Develop : === DO NOT USE IN THIS CASE === dd>
- See also:
- Property PositionMode() As
-
Returns or sets positioning mode.
Legal values:- 0
- CATGSMPositionMode_NoneOrPositioned.
- 1
- CATGSMPositionMode_ExplicitSweep. if a positioning operation is done.
oPosMode the position mode
for the Sweep hybrid shape feature.
oPosMode = Sweep.PositionMode
- Parameters:
-
- oElem
- Positioning transformation / positioned profile. return value for CATScript applications, with (IDLRETVAL) function type dd>
- See also:
- See also:
- Parameters:
-
- oElem
- Profile element. return value for CATScript applications, with (IDLRETVAL) function type dd>
- See also:
- Returns:
- HRESULT S_OK if Ok E_FAIL else return error code for C++ Implementations dd>
- See also:
Legal values:
- 0
- CATGSMPositionDirCompMode_None. No X axis specified.
- 1
- CATGSMPositionDirCompMode_Tangent: the X axis is implicitly the tangent of the profile at the origin (the origin then HAS to be on the profile)
- 2
- CATGSMPositionDirCompMode_User: the X axis is specified by a direction via SetPosDirection(UserInputDirection, 1)
oDirCompMode the Profile X Axis ComputationMode
for the Sweep hybrid shape feature.
oDirCompMode = Sweep.ProfileXAxisComputationMode
If the direction is specified, the plane normal to this direction is taken as reference surface.
- Example:
-
This example retrieves in
ohDirthe pulling direction feature for theSweephybrid shape feature.Dim ohDir As CATIAHybridShapeDirection Set ohDir = Sweep.PullingDirection
- Parameters:
-
- oElem
- Reference surface. return value for CATScript applications, with (IDLRETVAL) function type dd>
- See also:
- Parameters:
-
- oElem
- Guide curve. return value for CATScript applications, with (IDLRETVAL) function type dd>
- See also:
- Returns:
- HRESULT S_OK if Ok E_FAIL else return error code for C++ Implementations dd>
- See also:
TRUE or FALSE (FALSE if not specified).
For example: a explicit sweep with reference surface leads to four possible solutions.
- Parameters:
-
- oElem
- Spine curve. return value for CATScript applications, with (IDLRETVAL) function type dd>
- See also:
- See also:
Legal subtype values are:
| 1 | Explicit profile swept surface defined with reference surface |
| 2 | Explicit profile swept surface defined with two guide curves |
| 3 | Explicit profile swept surface defined with pulling direction |
Methods
- Func GetAngleRef( ii) As
-
Gets the angle value associated to the reference surface.
- Parameters:
-
- iI
- Angle value index (1: start value, 2: end value). dd>
- oElem
- Angle value. return value for CATScript applications, with (IDLRETVAL) function type dd>
- See also:
- See also:
- Sub GetFittingPoints( opIAElemA, opIAElemB)
-
Gets the fitting points : located in the profile plane, these points are used
for two-guide swept surfaces to determine guide intersection locations.
param opIAElem1 Fitting point associated to the first guide
param opIAElem2 Fitting point associated to the second guide - Sub GetLongitudinalRelimiters( opIAElemA, opIAElemB)
-
- Deprecated:
- V5R16 CATHybridShapeSweepExplicit#GetRelimiters
Returns the elements relimiting the spine (or the default spine).
param : opIAElem1 First relimiting feature (plane or point)
param : opIAElem2 Second relimiting feature (plane or point) dd>
- Sub GetNbAngle( oAng)
-
Returns the number of Angles.
param : oAng Number of Angle. - Sub GetNbGuide( oNum)
-
Gets the number of guides curves.
param : oNum Number of guide curves. - Sub GetNbPosAngle( oPosAng)
-
Gets the number of numerical positioning parameters corresponding to
angles from the default positions of the X axes.
param : oPosAng Number of parameters - Sub GetNbPosCoord( oPosCoord)
-
Gets the number of numerical positioning parameters corresponding to
coordinates of the new axes systems origins.
param oPosCoord Number of parameters - Func GetPosAngle( ii) As
-
Gets angles if both profile and first sweep plane axis systems from default positions.
- Parameters:
-
- iI
- Index of numerical positioning coordinates in profile (value 1) or first sweep plane (value 2) axis system. dd>
- oElem
- Angle value. return value for CATScript applications, with (IDLRETVAL) function type dd>
- See also:
- See also:
- Func GetPosCoord( ii) As
-
Gets translations coordinates if both profile axis system
and first sweep plane axis system from default positions.
- Parameters:
-
- iI
- Index of numerical positioning coordinates in profile (value 1 or 2) or first sweep plane (value 3 or 4) axis system. dd>
- oElem
- Coordinate value. return value for CATScript applications, with (IDLRETVAL) function type dd>
- See also:
- See also:
- Func GetPosDirection( ii) As
-
Gets the positioning directions : profile plane or first
sweep plane X-axis direction.
- Parameters:
-
- iI
- Plane index : 1 for profile plane, 2 for first sweep plane. dd>
- oElem
- Direction element. return value for CATScript applications, with (IDLRETVAL) function type dd>
- See also:
- See also:
- Func GetPosPoint( ii) As
-
Gets the points designated as the origins of the profile
plane and first sweep plane.
- Parameters:
-
- iI
- Plane index : 1 for profile plane, 2 for first sweep plane. dd>
- oElem
- Origin point. return value for CATScript applications, with (IDLRETVAL) function type dd>
- See also:
- See also:
- Func GetPosSwapAxes( ii) As
-
Gets axes inversion from previous definition for both profile
plane and first sweep plane.
- Parameters:
-
- iI
- Axis system index (1 for profile plane, 2 for first sweep plane). dd>
- oElem
- Inversion value:
Inversion values :
= 1 - CATGSMAxisInversionMode_None : no axis inverted.
= 2 - CATGSMAxisInversionMode_X : only X axis inverted.
= 3 - CATGSMAxisInversionMode_Y : only Y axis inverted.
= 4 - CATGSMAxisInversionMode_Both : both axes inverted. dd>
- See also:
- Sub GetRelimiters( opIAElem1, opOrient1, opIAElem2, opOrient2)
-
Retrieves the elements relimiting the spine (or the default spine).
- Parameters:
-
- opIAElem1
- The first relimiting feature (plane or point) dd>
- opOrient1
- Split direction for the first relimitation
0 means that the beginning of the spine (considering its orientation) is removed, 1 means that the end of the spine is removed dd> - opIAElem2
- The second relimiting feature (plane or point) dd>
- opOrient2
- Split direction for the second relimitation dd>
- Sub IsSketchAxisUsedAsDefault( oBoolean)
-
Queries status wherere Sketch axis used as default or not.
In case of a sketch profile, specify if the 2D sketch axis must be used as default planar profile axis (for positioning purpose) or not.
param oBoolean TRUE if the 2D sketch axis must be used, FALSE if not. - Sub RemoveAngle()
- Removes an Angle.
- Sub RemoveFittingPoints()
- Removes the fitting points.
- Sub RemoveGuide()
- Removes a guide curve.
- Sub SetAngleRef( ii, Elem)
-
Sets the angle value associated to the reference surface.
- Parameters:
-
- iI
- Angle value index (1: start value, 2: end value). dd>
- iElem
- Angle value. dd>
- See also:
- Sub SetFittingPoints( ipIAElemA, ipIAElemB)
-
Sets the fitting points.
Does not work with NULL_var values, Use RemoveFittingPoints() method instead.
param ipIAElem1 Fitting point associated to the first guide (must not be equal to NULL_var)
param ipIAElem2 Fitting point associated to the second guide (can be equal to NULL_var) - Sub SetGuideDeviation( iLength)
-
Sets deviation value (length) from guide curves allowed during sweeping.
operation in order to smooth it.
param : iLength Numerical value. - Sub SetLongitudinalRelimiters( ipIAElemA, ipIAElemB)
-
- Deprecated:
- V5R16 CATHybridShapeSweepExplicit#SetRelimiters
Sets the elements relimiting the spine (or the default spine).
param : ipIAElem1 First relimiting feature (plane or point)
param : ipIAElem2 Second relimiting feature (plane or point) dd>
- Sub SetPosAngle( ii, Elem)
-
Sets angles if both profile and first sweep plane axis systems
from default positions.
- Parameters:
-
- iI
- Index of numerical positioning coordinates in profile (value 1) or first sweep plane (value 2) axis system. dd>
- iElem
- Angle value. dd>
- See also:
- Sub SetPosCoord( ii, Elem)
-
Sets translations coordinates if both profile axis system
and first sweep plane axis system from default positions.
- Parameters:
-
- iI
- Index of numerical positioning coordinates in profile (value 1 or 2) or first sweep plane (value 3 or 4) axis system. dd>
- iElem
- Coordinate value. dd>
- See also:
- Sub SetPosDirection( ii, Elem)
-
Sets the positioning directions : profile plane or first
sweep plane X-axis direction.
- Parameters:
-
- iI
- Plane index : 1 for profile plane, 2 for first sweep plane. dd>
- iElem
- Direction element. dd>
- See also:
- See also:
- Sub SetPosPoint( ii, Elem)
-
Sets the points designated as the origins of the profile
plane and first sweep plane.
- Parameters:
-
- iI
- Plane index : 1 for profile plane, 2 for first sweep plane. dd>
- iElem
- Origin point. dd>
- See also:
- See also:
- Sub SetPosSwapAxes( ii, Elem)
-
Sets axes inversion from previous definition for both profile
plane and first sweep plane.
- Parameters:
-
- iI
- Axis system index (1 for profile plane, 2 for first sweep plane). dd>
- iElem
- Inversion value:
Inversion values :
= 1 - CATGSMAxisInversionMode_None : no axis inverted.
= 2 - CATGSMAxisInversionMode_X : only X axis inverted.
= 3 - CATGSMAxisInversionMode_Y : only Y axis inverted.
= 4 - CATGSMAxisInversionMode_Both : both axes inverted. dd>
- See also:
- Sub SetRelimiters( ipIAElem1, ipOrient1, ipIAElem2, ipOrient2)
-
Sets the elements relimiting the spine (or the default spine).
- Parameters:
-
- ipIAElem1
- The first relimiting feature (plane or point) dd>
- ipOrient1
- Split direction for the first relimitation
0 means that the beginning of the spine (considering its orientation) is removed, 1 means that the end of the spine is removed dd> - ipIAElem2
- The second relimiting feature (plane or point) dd>
- ipOrient2
- Split direction for the second relimitation dd>
- Sub SetSmoothAngleThreshold( iAngle)
-
Sets angular threshold.
param : iAngle Numerical value. - Sub UseSketchAxisAsDefault( iBoolean)
-
Uses Sketch Axis As Default.
In case of a sketch profile, specify if the 2D sketch axis must be used as default planar profile axis (for positioning purpose) or not.
param iBoolean TRUE if the 2D sketch axis must be used, FALSE if not.