HybridShapeCircle (Object)

Represents the hybrid shape circle object.
Role: To access the data of the hybrid shape circle object.

This data includes:

All interfaces for different type of circle derivates HybridShapeCircle.

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 hybShpCircle
 
 Dim 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
See also:
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++ Implementations
See also:
Property EndAngle() As (Read Only)
Returns the circle end angle.
Example:
This example retrieves in ShpCircleEndAngle the end angle of the ShpCircle hybrid shape circle.
 Dim ShpCircleEndAngle As Angle
 ShpCircleEndAngle = ShpCircle.EndAngle
 
Property StartAngle() As (Read Only)
Returns the circle start angle.
Example:
This example retrieves in ShpCircleStartAngle the end angle of the ShpCircle hybrid 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
oAxis
Reference to the element.
Example:
This example retrieves the axis of the circle. HybShpCircle hybrid 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
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 HybShpCircleCenter the center of the HybShpCircle hybrid shape circle.
 Dim HybShpCircleCenter
 ReDim HybShpCircleCenter(2)
 ShpCircle.GetFreeRadius(HybShpCircleCenter)
 

You can access each center coordinate as follows:

  • x is in HybShpCircleCenter(0)
  • y is in HybShpCircleCenter(1)
  • z is in HybShpCircleCenter(2)
Sub GetFreeRadius( oRadius)
Returns the circle radius.
Parameters:
oRadius
The circle radius
Example:
This example retrieves in HybShpCircleRadius the radius of the HybShpCircle hybrid shape circle.
 double HybShpCircleRadius
 ShpCircle.GetFreeRadius(HybShpCircleRadius)
 
Func GetLimitation() As
Gets the limitation type for the circle.
Parameters:
oLimit
(Angles = 0, Whole = 1, Trimmed = 2, Complementary = 3). circle limitation
Sub SetLimitation( iLimitation)
Set the circle limitation type.
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 ShpCircle hybrid shape circle to trimmed.
 ShpCircle.SetLimitation 2