pycatia.mec_mod_interfaces.axis_system¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
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.mec_mod_interfaces.axis_system.AxisSystem(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectAxisSystemThe object Axis System A axis system has got one origin point and threeorthogonal axes, crossing at the origin point.- property axis_rotation_angle: Angle¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AxisRotationAngle() As Angle (Read Only)Returns the rotation angle of an axis system. Succeeds only if the axissystem is defined by a rotation around an axis, wich means that its type iscatAxisSystemAxisRotation.
- Return type:
- property axis_rotation_reference: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AxisRotationReference() As ReferenceReturns the reference for the axis rotation. Succeeds only if the axissystem is defined by a rotation around an axis, wich means that its type iscatAxisSystemAxisRotation.
- Return type:
- get_euler_angles() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetEulerAngles(Angle oFirstAngle,Angle oSecondAngle,Angle ThirdAngle)Returns the Euler Angles of an axis system. Succeeds only if the axissystem is defined by Euler angles, wich means its type iscatAxisSystemEulerAngles.
- get_origin() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetOrigin(CATSafeArrayVariant oOrigin)Returns the coordinates X,Y,Z of the origin point of the axissystem.Parameters:oOriginA Safe Array made up of 3 doubles: X, Y, Z, representing thecoordinates in model space of the origin point of the axis system.Example:The following example retrieves in originCoord the coordinates of theorigin point of the axisSystem axis system:Dim originCoord(2)axisSystem.GetOrigin originCoord
- Parameters:
o_origin (tuple) –
- Return type:
None
- get_vectors() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetVectors(CATSafeArrayVariant oVectorX,CATSafeArrayVariant oVectorY)Returns the coordinates X,Y,Z of the axes X and Y of the axissystem.Parameters:oVectorXA Safe Array made up of 3 doubles: X, Y, Z, representing thecoordinates in model space of the X axis vector of the axis system.oVectorYA Safe Array made up of 3 doubles: X, Y, Z, representing thecoordinates in model space of the Y axis vector of the axis system.Example:The following example retrieves in vectorXCoord and vectorYCoord thecoordinates of the vectors of the axisSystem axissystem:Dim vectorXCoord(2)Dim vectorYCoord(2)axisSystem.GetVectors vectorXCoord, vectorYCoord
- Return type:
None
- get_x_axis() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetXAxis(CATSafeArrayVariant oXAxis)Returns the coordinates X,Y,Z of the X axis of the axissystem.Parameters:oXAxisA Safe Array made up of 3 doubles: X, Y, Z, representing thecoordinates in model space of the X axis of the axis system.Example:The following example retrieves in XAxisCoord the coordinates of the Xaxis of the axisSystem axis system:Dim XAxisCoord(2)axisSystem.GetXAxis XAxisCoord
- Parameters:
o_x_axis (tuple) –
- Return type:
None
- get_y_axis() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetYAxis(CATSafeArrayVariant oYAxis)Returns the coordinates X,Y,Z of the Y axis of the axissystem.Parameters:oYAxisA Safe Array made up of 3 doubles: X, Y, Z, representing thecoordinates in model space of the Y axis of the axis system.Example:The following example retrieves in YAxisCoord the coordinates of the Yaxis of the axisSystem axis system:Dim YAxisCoord(2)axisSystem.GetYAxis XAxisCoord
- Parameters:
o_y_axis (tuple) –
- Return type:
None
- get_z_axis() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetZAxis(CATSafeArrayVariant oZAxis)Returns the coordinates X,Y,Z of the Z axis of the axissystem.Parameters:oZAxisA Safe Array made up of 3 doubles: X, Y, Z, representing thecoordinates in model space of the Z axis of the axis system.Example:The following example retrieves in ZAxisCoord the coordinates of the Zaxis of the axisSystem axis system:Dim ZAxisCoord(2)axisSystem.GetZAxis ZAxisCoord
- Parameters:
o_z_axis (tuple) –
- Return type:
None
- property is_current: bool¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property IsCurrent() As booleanReturns True if the axis system is the current one, else returns False.Sets the axis system as the current one or not.Example:The following example returns in isCurrent True if the axis systemaxisSystem is the current one :isCurrent = axisSystem.IsCurrentThe following example sets the axis system axisSystem as the currentone :axisSystem.IsCurrent = 1The following example sets the axis system axisSystem as not thecurrent one :axisSystem.IsCurrent = 0
- Return type:
bool
- property origin_point: Reference¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property OriginPoint() As ReferenceReturns or sets the geometric point which defines the origin of the axissystem.OriginPoint is and must be a reference on a geometric 3Dpoint.Example:The following example sets the point Point.1 of the Geometrical SetGeometrical Set.1 as the origin point of the axis systemAxisSystem0:Dim HybridBody4 As AnyObjectSet HybridBody4 = Body1.HybridBodies.Item ( “Geometrical Set.1” )Dim HybridShapePointCoord5 As AnyObjectSet HybridShapePointCoord5 = HybridBody4.HybridShapes.Item ( “Point.1” )Dim Reference6 As ReferenceSet Reference6 = CATIA.ActiveDocument.Part.CreateReferenceFromGeometry(HybridShapePointCoord5)AxisSystem0.OriginPoint = Reference6
- Return type:
- property origin_type: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property OriginType() As CATAxisSystemOriginTypeReturns or sets the way the origin point is defined.The origin point can be not specified, or be defined by coordinates or by ageometric point.CATAxisSystemOriginType is the enumeration which describes how the originpoint is defined :If OriginType=0, the origin point is defined by a geometric point. If nopoint si selected, the origin will be automatically put at the intersection ofthe lines or planes defining the axes.If OriginType=1, the origin is defined by three coordinates x,y,z. Then,the origin will allways stays at the position defined by thecoordinates.Example:The following example prints the origin type :Catia.SystemService.Print “ OriginType = “ & axisSystem.OriginTypeThe following example sets the origin type to 1 :axisSystem.OriginType = 1
- Returns:
enum cat_axis_system_origin_type
- Return type:
int
- put_origin(i_origin: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub PutOrigin(CATSafeArrayVariant iOrigin)Defines the coordinates X,Y,Z of the origin point of the axissystem.Parameters:iOriginA Safe Array made up of 3 doubles: X, Y, Z, representing thecoordinates in model space of the origin point of the axis system.Example:The following example puts in originCoord the new coordinates of theorigin point of the axisSystem axis system:Dim originCoord(2)originCoord ( 0 ) = 100.000000originCoord ( 1 ) = 200.000000originCoord ( 2 ) = 10.000000axisSystem.PutOrigin originCoord
- Parameters:
i_origin (tuple) –
- Return type:
None
- put_vectors(i_vector_x: tuple, i_vector_y: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub PutVectors(CATSafeArrayVariant iVectorX,CATSafeArrayVariant iVectorY)Defines the coordinates X,Y,Z of the axes X and Y of the axissystem.Parameters:iVectorXA Safe Array made up of 3 doubles: X, Y, Z, representing thecoordinates in model space of the X axis vector of the axis system.iVectorYA Safe Array made up of 3 doubles: X, Y, Z, representing thecoordinates in model space of the Y axis vector of the axis system.Example:The following example modifies in vectorXCoord and vectorYCoord thecoordinates of the vectors of the axisSystem axissystem:Dim vectorXCoord(2)vectorYCoord ( 0 ) = 1.000000vectorYCoord ( 1 ) = -1.000000vectorYCoord ( 2 ) = 0.000000Dim vectorYCoord(2)vectorYCoord ( 0 ) = 0.000000vectorYCoord ( 1 ) = 0.000000vectorYCoord ( 2 ) = 1.000000axisSystem.PutVectors vectorXCoord, vectorYCoord
- Parameters:
i_vector_x (tuple) –
i_vector_y (tuple) –
- Return type:
None
- put_x_axis(i_x_axis: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub PutXAxis(CATSafeArrayVariant iXAxis)Defines the coordinates X,Y,Z of the X axis of the axissystem.Parameters:iXAxisA Safe Array made up of 3 doubles: X, Y, Z, representing thecoordinates in model space of the X axis of the axis system.Example:The following example puts in XAxisCoord the new coordinates of the Xaxis of the axisSystem axis system:Dim XAxis(2)XAxis ( 0 ) = 100.000000XAxis ( 1 ) = 200.000000XAxis ( 2 ) = 10.000000axisSystem.PutXAxis XAxis
- Parameters:
i_x_axis (tuple) –
- Return type:
None
- put_y_axis(i_y_axis: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub PutYAxis(CATSafeArrayVariant iYAxis)Defines the coordinates X,Y,Z of the Y axis of the axissystem.Parameters:iYAxisA Safe Array made up of 3 doubles: X, Y, Z, representing thecoordinates in model space of the Y axis of the axis system.Example:The following example puts in XAxisCoord the new coordinates of the Yaxis of the axisSystem axis system:Dim YAxis(2)YAxis ( 0 ) = 100.000000YAxis ( 1 ) = 200.000000YAxis ( 2 ) = 10.000000axisSystem.PutYAxis YAxis
- Parameters:
i_y_axis (tuple) –
- Return type:
None
- put_z_axis(i_z_axis: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub PutZAxis(CATSafeArrayVariant iZAxis)Defines the coordinates X,Y,Z of the Z axis of the axissystem.Parameters:iZAxisA Safe Array made up of 3 doubles: X, Y, Z, representing thecoordinates in model space of the Z axis of the axis system.Example:The following example puts in ZAxisCoord the new coordinates of the Zaxis of the axisSystem axis system:Dim ZAxis(2)ZAxis ( 0 ) = 100.000000ZAxis ( 1 ) = 200.000000ZAxis ( 2 ) = 10.000000axisSystem.PutZAxis ZAxis
- Parameters:
i_z_axis (tuple) –
- Return type:
None
- property type: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Type() As CATAxisSystemMainTypeReturns or sets the type of the axis system. Sets the axis systemtype.Example:The following example returns in type1 the type of the axis systemaxisSystem1:type1 = axisSystem1.TypeThe following example sets the type of the axis system axisSystem1 asstandard:axisSystem1.Type = 0The following example sets the type of the axis system axisSystem1 asaxis rotation:axisSystem1.Type = 1The following example sets the type of the axis system axisSystem1 as datum(explicit):axisSystem1.Type = 3
- Returns:
enum cat_axis_system_main_type
- Return type:
int
- property x_axis_direction: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property XAxisDirection() As ReferenceReads or sets the geometric point, line or plane which defines thedirection of the X axis.AxisDirection is and must be a reference on a 3D point or 3D line orplane.Example:The following example sets the point Point.1 of the Geometrical SetGeometrical Set.1 as the direction of the X axis of the axis systemAxisSystem0:Dim HybridBody4 As AnyObjectSet HybridBody4 = Body1.HybridBodies.Item ( “Geometrical Set.1” )Dim HybridShapePointCoord5 As AnyObjectSet HybridShapePointCoord5 = HybridBody4.HybridShapes.Item ( “Point.1” )Dim Reference6 As ReferenceSet Reference6 = CATIA.ActiveDocument.Part.CreateReferenceFromGeometry( HybridShapePointCoord5 )AxisSystem0.XAxisDirection = Reference6
- Return type:
- property x_axis_type: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property XAxisType() As CATAxisSystemAxisTypeReads or sets the way the X axis is specified.An axis X,Y, or Z of the axis system can be defined by a geometric point,line or plane, or by coordinates.AxisType = 0 : The axis is defined by a geometric point, line or plane and with the samedirection.AxisType = 1 : The axis direction is defined by the three coordinates x,y,z, of a vector, towhich the axis will always stay parallel.AxisType = 2 : the axis is defined by a geometric point, line or plane and with the oppositedirection. Notice : If the X axis is neither defined by coordinates nor by apoint,line or plane, the axis will be automatically computed in order to build anorthogonal axis system with the other specified axes.Example:The following example prints the X axis type :Catia.SystemService.Print “ XAxisType = “ & axisSystem.XAxisTypeThe following example sets the X axis type to 1 :axisSystem.XAxisType = 1
- Returns:
enum cat_axis_system_axis_type
- Return type:
int
- property y_axis_direction: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property YAxisDirection() As ReferenceReads or sets the geometric point, line or plane which defines thedirection of the Y axis.AxisDirection is and must be a reference on a 3D point or 3D line orplane.Example:The following example sets the point Point.1 of the Geometrical SetGeometrical Set.1 as the direction of the Y axis of the axis systemAxisSystem0:Dim HybridBody4 As AnyObjectSet HybridBody4 = Body1.HybridBodies.Item ( “Geometrical Set.1” )Dim HybridShapePointCoord5 As AnyObjectSet HybridShapePointCoord5 = HybridBody4.HybridShapes.Item ( “Point.1” )Dim Reference6 As ReferenceSet Reference6 = CATIA.ActiveDocument.Part.CreateReferenceFromGeometry(HybridShapePointCoord5 )AxisSystem0.YAxisDirection = Reference6
- Return type:
- property y_axis_type: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property YAxisType() As CATAxisSystemAxisTypeReads or sets the way the Y axis is specified.An axis X,Y, or Z of the axis system can be defined by a geometric point,line or plane, or by coordinates.AxisType = 0 : The axis is defined by a geometric point, line or plane and with the samedirection.AxisType = 1 : The axis direction is defined by the three coordinates x,y,z, of a vector, towhich the axis will always stay parallel.AxisType = 2 : the axis is defined by a geometric point, line or plane and with the oppositedirection. Notice : If the Y axis is neither defined by coordinates nor by apoint,line or plane, the axis will be automatically computed in order to build anorthogonal axis system with the other specified axes.Example:The following example prints the Y axis type :Catia.SystemService.Print “ YAxisType = “ & axisSystem.YAxisTypeThe following example sets the Y axis type to 1 :axisSystem.YAxisType = 1
- Returns:
enum cat_axis_system_axis_type
- Return type:
int
- property z_axis_direction: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property ZAxisDirection() As ReferenceReads or sets the geometric point, line or plane which defines thedirection of the Z axis.AxisDirection is and must be a reference on a 3D point or 3D line orplane.Example:The following example sets the point Point.1 of the Geometrical SetGeometrical Set.1 as the direction of the Z axis of the axis systemAxisSystem0:Dim HybridBody4 As AnyObjectSet HybridBody4 = Body1.HybridBodies.Item ( “Geometrical Set.1” )Dim HybridShapePointCoord5 As AnyObjectSet HybridShapePointCoord5 = HybridBody4.HybridShapes.Item ( “Point.1” )Dim Reference6 As ReferenceSet Reference6 = CATIA.ActiveDocument.Part.CreateReferenceFromGeometry(HybridShapePointCoord5)AxisSystem0.ZAxisDirection = Reference6
- Return type:
- property z_axis_type: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property ZAxisType() As CATAxisSystemAxisTypeReads or sets the way the Z axis is specified.An axis X,Y, or Z of the axis system can be defined by a geometric point,line or plane, or by coordinates.AxisType = 0 : The axis is defined by a geometric point, line or plane and with the samedirection.AxisType = 1 : The axis direction is defined by the three coordinates x,y,z, of a vector, towhich the axis will always stay parallel.AxisType = 2 : the axis is defined by a geometric point, line or plane and with the oppositedirection. Notice : If the Z axis is neither defined by coordinates nor by apoint,line or plane, the axis will be automatically computed in order to build anorthogonal axis system with the other specified axes.Example:The following example prints the Z axis type :Catia.SystemService.Print “ ZAxisType = “ & axisSystem.ZAxisTypeThe following example sets the Z axis type to 1 :axisSystem.ZAxisType = 1
- Returns:
enum cat_axis_system_axis_type
- Return type:
int