Role: To access the data of the hybrid shape circle object.
This data includes:
- The circle radius
- Two circle center
- The circle arc limitation mode
- The circle start and end angles
Use the CATIAHybridShapeFactory to create a HybridShapeCircle objects.
- See also:
Properties
- Property AxisComputation() As
-
Returns or sets the axis computation mode.
- Example:
-
This example retrieves the axis computation mode of the
hybShpCircleDim axisComp As Boolean axisComp = hybShpCircle.AxisComputation
- Property AxisDirection() As
-
Role: To get_Direction on the object.
- Parameters:
-
- oDir
- 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 EndAngle() As (Read Only)
-
Returns the circle end angle.
- Example:
-
This example retrieves in
ShpCircleEndAnglethe end angle of theShpCirclehybrid shape circle.Dim ShpCircleEndAngle As Angle ShpCircleEndAngle = ShpCircle.EndAngle
- Property StartAngle() As (Read Only)
-
Returns the circle start angle.
- Example:
-
This example retrieves in
ShpCircleStartAnglethe end angle of theShpCirclehybrid shape circle.Dim ShpCircleStartAngle As Angle ShpCircleStartAngle = ShpCircle.StartAngle
Methods
- Sub GetAxis( iPosition, oAxis)
-
Returns the axis of the Circle.
- Parameters:
-
- iType
- Type of axis to be retrived. 3 - CATGSMAxisLineType_NormalToCircle 2 - CATGSMAxisLineType_NormalToDirection 1 - CATGSMAxisLineType_AlignedWithDirection dd>
- oAxis
- Reference to the element.
- Example:
-
This example retrieves the axis of the circle.
HybShpCirclehybrid shape circle.Dim AxisRef As Reference HybShpCircle.GetAxis 1, AxisRef
- Sub GetCenter( oCenterX, oCenterY, oCenterZ)
-
Gets the mathematical center of the circle.
This information is available once the circle has been computed.
- Parameters:
-
- oCenterX,
- oCenterY, oCenterZ, circle center dd>
- Sub GetFreeCenter( ioCenter)
-
Returns the circle center.
- Parameters:
-
- oCenter
- The circle center. It is returned as an array of three coordinates in SafeArrayVariant
- Example:
-
This example retrieves in
HybShpCircleCenterthe center of theHybShpCirclehybrid shape circle.Dim HybShpCircleCenter ReDim HybShpCircleCenter(2) ShpCircle.GetFreeRadius(HybShpCircleCenter)
You can access each center coordinate as follows:
xis inHybShpCircleCenter(0)yis inHybShpCircleCenter(1)zis inHybShpCircleCenter(2)
- Parameters:
-
- oRadius
- The circle radius
- Example:
-
This example retrieves in
HybShpCircleRadiusthe radius of theHybShpCirclehybrid shape circle.double HybShpCircleRadius ShpCircle.GetFreeRadius(HybShpCircleRadius)
- Parameters:
-
- oLimit
- (Angles = 0, Whole = 1, Trimmed = 2, Complementary = 3). circle limitation dd>
- Parameters:
-
- iLimitation
- The circle limitation type
Legal values:- 0
- Angles
- 1
- Whole
- 2
- Trimmed
- 3
- Complementary
- Example:
-
This example sets the limitiation type
of the
ShpCirclehybrid shape circle to trimmed.ShpCircle.SetLimitation 2