pycatia.hybrid_shape_interfaces.hybrid_shape_circle¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-07-06 14:02:20.222384
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.hybrid_shape_interfaces.hybrid_shape_circle.HybridShapeCircle(com_object)¶
Note
CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMecModInterfaces.HybridShapeHybridShapeCircleRepresents the hybrid shape circle object.Role: To access the data of the hybrid shape circle object.This data includes:The circle radiusTwo circle centerThe circle arc limitation modeThe circle start and end anglesAll interfaces for different type of circle derivatesHybridShapeCircle.Use the CATIAHybridShapeFactory to create a HybridShapeCircleobjects.See also:HybridShapeFactory- property axis_computation: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AxisComputation() As booleanReturns or sets the axis computation mode.Example:This example retrieves the axis computation mode ofthe hybShpCircleDim axisComp As BooleanaxisComp = hybShpCircle.AxisComputation
- Return type:
bool
- property axis_direction: HybridShapeDirection¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AxisDirection() As HybridShapeDirectionRole: To get_Direction on the object.Parameters:oDirreturn value for CATScript applications, with (IDLRETVAL) functiontypeSee also:HybridShapeDirectionReturns:HRESULT S_OK if Ok E_FAIL else return error code for C++ImplementationsSee also:HybridShapeFactory
- Return type:
- property end_angle: Angle¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property EndAngle() As Angle (Read Only)Returns the circle end angle.Example:This example retrieves in ShpCircleEndAngle the end angle of theShpCircle hybrid shape circle.Dim ShpCircleEndAngle As AngleShpCircleEndAngle = ShpCircle.EndAngle
- Return type:
- get_axis(i_position: int, o_axis: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetAxis(long iPosition,Reference oAxis)Returns the axis of the Circle.Parameters:iTypeType of axis to be retrived. 3 - CATGSMAxisLineType_NormalToCircle2 - CATGSMAxisLineType_NormalToDirection 1 -CATGSMAxisLineType_AlignedWithDirectionoAxisReference to the element.Example:This example retrieves the axis of the circle. HybShpCirclehybrid shape circle.Dim AxisRef As ReferenceHybShpCircle.GetAxis 1, AxisRef
- Parameters:
i_position (int) –
o_axis (Reference) –
- Return type:
None
- get_center(o_center_x: float, o_center_y: float, o_center_z: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetCenter(double oCenterX,double oCenterY,double oCenterZ)Gets the mathematical center of the circle. This information is availableonce the circle has been computed.Parameters:oCenterX,oCenterY, oCenterZ, circle center
- Parameters:
o_center_x (float) –
o_center_y (float) –
o_center_z (float) –
- Return type:
None
- get_free_center() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetFreeCenter(CATSafeArrayVariant ioCenter)Returns the circle center.Parameters:oCenterThe circle center. It is returned as an array of three coordinatesin SafeArrayVariantExample:This example retrieves in HybShpCircleCenter the center of theHybShpCircle hybrid shape circle.Dim HybShpCircleCenterReDim 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)
- Return type:
tuple
- get_free_radius() float ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetFreeRadius(double oRadius)Returns the circle radius.Parameters:oRadiusThe circle radiusExample:This example retrieves in HybShpCircleRadius the radius of theHybShpCircle hybrid shape circle.double HybShpCircleRadiusShpCircle.GetFreeRadius(HybShpCircleRadius)
- Return type:
float
- get_limitation() int ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetLimitation() As longGets the limitation type for the circle.Parameters:oLimit(Angles = 0, Whole = 1, Trimmed = 2, Complementary = 3). circle limitation
- Return type:
int
- set_limitation(i_limitation: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetLimitation(long iLimitation)Set the circle limitation type.Parameters:iLimitationThe circle limitation typeLegal values:0Angles1Whole2Trimmed3ComplementaryExample:This example sets the limitiation type of the ShpCircle hybrid shapecircle to trimmed.ShpCircle.SetLimitation 2
- Parameters:
i_limitation (int) –
- Return type:
None
- property start_angle: Angle¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property StartAngle() As Angle (Read Only)Returns the circle start angle.Example:This example retrieves in ShpCircleStartAngle the end angle of theShpCircle hybrid shape circle.Dim ShpCircleStartAngle As AngleShpCircleStartAngle = ShpCircle.StartAngle
- Return type: