pycatia.dnb_device_interfaces.basic_device¶
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.dnb_device_interfaces.basic_device.BasicDevice(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectBasicDeviceInterface representing a Basic Device.Role: This interface is used to interact with devices that are available in theDevice Building workbench. This includes devices created in both V5 andD5.The following code snippet can be used to obtain a device in a CATProductdocument.Dim objDevice As BasicDeviceset objDevice = CATIA.ActiveDocument.Product.GetTechnologicalObject(“BasicDevice”)- get_dof_values(o_values: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetDOFValues(CATSafeArrayVariant oValues)Get the DOF values for the device.Parameters:oValuesThis contains a list of the current DOF values. Please note thatdistances are measured in meters and angles in radians.Example:Dim objDevice As BasicDeviceset objDevice = CATIA.ActiveDocument.Product.GetTechnologicalObject(“BasicDevice”)Dim ListOfDOFValues ()objDevice.GetDOFValues ListOfDOFValuesFor i = 0 to ubound (ListOfDOFValues)…Next
- Parameters:
o_values (tuple) –
- Return type:
None
- get_home_positions(o_home_pos_list: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetHomePositions(CATSafeArrayVariant oHomePosList)Get list of home positions of the device.Parameters:oHomePosListThis outer parameter contains list of home position .Returns:An HRESULT
- Parameters:
o_home_pos_list (tuple) –
- Return type:
None
- set_home_position(i_name: str, idb_trans: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetHomePosition(CATBSTR iName,CATSafeArrayVariant idbTrans)Set home position of the device.Parameters:iNameThis parameter contains name of home position .idbTransThis parameter contains distance data in Meters or angular data indegree radian.Returns:HRESULT indicate whether function succeed.
- Parameters:
i_name (str) –
idb_trans (tuple) –
- Return type:
None