pycatia.in_interfaces.position¶
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.in_interfaces.position.Position(com_object)¶
Note
CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectInfInterfaces.MovePositionRepresents the position object.The position object is the 3D-axis system associated with anobject.- get_components() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetComponents(CATSafeArrayVariantoAxisComponentsArray)Returns the components of an object’s position. This returns the 3D-axissystem associated with the object.Parameters:oAxisComponentsArrayThe array used to store the twelve components retrieved from theobjet’s position. The first nine represent succcessively the components of thex-axis, y-axis, and z-axis. The last three represent the coordinates of theorigin point.Example:This example retrieves in oAxisComponentsArraythe 3D-axis system components fromthe Position object associated with MyObject:Dim oAxisComponentsArray ( 11 )MyObject.Position.GetComponents oAxisComponentsArray
- Return type:
tuple
- set_components(i_axis_components_array: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetComponents(CATSafeArrayVariantiAxisComponentsArray)Sets the components of an object’s position. This sets the 3D-axis systemassociated with the object.Parameters:iAxisComponentsArrayThe array initialized with the components to set to the object’sposition. The first nine represent succcessively the components of the x-axis,y-axis, and z-axis. The last three represent the coordinates of the originpoint.Example:This example sets the 3D-axis system components storediniAxisComponentsArray tothe Position object associated with MyObject:Dim iAxisComponentsArray( 11 )‘ x axis componentsiAxisComponentsArray( 0 ) = 1.000iAxisComponentsArray( 1 ) = 0iAxisComponentsArray( 2 ) = 0.707‘ y axis componentsiAxisComponentsArray( 3 ) = 0iAxisComponentsArray( 4 ) = 0iAxisComponentsArray( 5 ) = 0.707‘ z axis componentsiAxisComponentsArray( 6 ) = 0iAxisComponentsArray( 7 ) = -0.707iAxisComponentsArray( 8 ) = 0.707‘ origin point coordinatesiAxisComponentsArray( 9 ) = 1.000iAxisComponentsArray( 10 ) = 2.000iAxisComponentsArray( 11 ) = 3.000MyObject.Position.SetComponents iAxisComponentsArray
- Parameters:
i_axis_components_array (tuple) –
- Return type:
None