pycatia.cat_sch_platform_interfaces.sch_grr_comp¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
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.cat_sch_platform_interfaces.sch_grr_comp.SchGRRComp(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSchGRRCompManage the graphical representation of a schematic component.- get_position(o_db2_position: SchListOfDoubles) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetPosition(SchListOfDoubles oDb2Position)Get the current position of the component.Parameters:oDb2PositionThe current position of the component.Example:Dim objThisIntf As SchGRRCompDim objArg1 As SchListOfDoubles…objThisIntf.GetPositionobjArg1
- Parameters:
o_db2_position (SchListOfDoubles) –
- Return type:
None
- get_rotation_angle(o_db1_rotation_angle_in_rad: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetRotationAngle(double oDb1RotationAngleInRad)Get the current rotation angle (from x-axis in radian) of thecomponent.Parameters:oDb1RotationAngleInRadThe current angle of the component in radian.Example:Dim objThisIntf As SchGRRCompDim dbVar As Double;…objThisIntf.GetRotationAngledbVar
- Parameters:
o_db1_rotation_angle_in_rad (float) –
- Return type:
None
- get_scale(o_db1_scale_factor: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetScale(double oDb1ScaleFactor)Get the current scale factor of the component.Parameters:oDb1ScaleFactorThe current scale factor of the component.Example:Dim objThisIntf As SchGRRCompDim dbVar As Double;…objThisIntf.GetScaledbVar
- Parameters:
o_db1_scale_factor (float) –
- Return type:
None
- get_transformation2_d(o_db6_trans_matrix: SchListOfDoubles) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetTransformation2D(SchListOfDoubles oDb6TransMatrix)Get the local coordinate reference frame (with respect to absolutecoordinate system) of the component.Parameters:oDb6TransMatrixAn double array of 6 members. Transformation matrix that definesthe local coordinate reference frame of the component member 1, 2 - defines thex-axis of the local coordinate reference frame. member 3, 4 - defines they-axis of the local coordinate reference frame. member 5, 6 - defines theorigin of the local coordinate reference frame One can also interpret this asthe transformation matrix that would move the component from the absolutecoordinate frame to the current position and orientation. As such, the member5,6 define the translational vector Furthemore, rotation angle and scale factorcan be calculated from member 1 to 4.Example:Dim objThisIntf As SchGRRCompDim objArg1 As SchListOfDoubles…objThisIntf.GetTransformation2DobjArg1
- Parameters:
o_db6_trans_matrix (SchListOfDoubles) –
- Return type:
None
- set_position(o_db2_position: tuple) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetPosition(CATSafeArrayVariant oDb2Position)Set the current position of the component.Parameters:iDb2PositionThe position of the component to be set.Example:Dim objThisIntf As SchGRRCompDim dbVar1(x) As CATSafeArrayVariant…objThisIntf.SetPositiondbVar1
- Parameters:
o_db2_position (tuple) –
- Return type:
tuple
- set_rotation_angle(i_db1_rotation_angle_in_rad: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetRotationAngle(double iDb1RotationAngleInRad)Set the current rotation angle (from x-axis in radian) of thecomponent.Parameters:iDb1RotationAngleInRadThe rotation angle of the component in radian to be set.Example:Dim objThisIntf As SchGRRCompDim dbVar As Double;…objThisIntf.SetRotationAngledbVar
- Parameters:
i_db1_rotation_angle_in_rad (float) –
- Return type:
None
- set_scale(i_db1_scale_factor: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetScale(double iDb1ScaleFactor)Set the current scale factor of the component.Parameters:iDb1ScaleFactorThe scale factor of the component to be set.Example:Dim objThisIntf As SchGRRCompDim dbVar As Double;…objThisIntf.SetScaledbVar
- Parameters:
i_db1_scale_factor (float) –
- Return type:
None
- set_transformation2_d(i_db6_trans_matrix: tuple) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetTransformation2D(CATSafeArrayVariantiDb6TransMatrix)Set the local coordinate reference frame (with respect to absolutecoordinate system) of the component.Parameters:iDb6TransMatrixTransformation matrix to be set. SeeGetTransformation2D for explanation of this argument.Example:Dim objThisIntf As SchGRRCompDim dbVar1(6) As CATSafeArrayVariant…objThisIntf.SetTransformation2DdbVar1
- Parameters:
i_db6_trans_matrix (tuple) –
- Return type:
tuple