pycatia.dnb_device_interfaces.dof_state¶
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.dof_state.DofState(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDOFStateInterface representing a Basic Device from which to getDOFState.Role: This interface is used to interact with devices DOF state that areavailable in the Device Building workbench. This includes devices created inboth V5 and D5.The following code snippet can be used to obtain a device in a CATProductdocument.Dim objDevice As DOFStateset objDevice = CATIA.ActiveDocument.Product.GetTechnologicalObject(“DOFState”)- get_device_dof_values(o_values: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetDeviceDOFValues(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 DOFStateset objDevice = CATIA.ActiveDocument.Product.GetTechnologicalObject(“DOFState”)Dim ListOfDOFValues ()objDevice.GetDeviceDOFValues ListOfDOFValuesFor i = 0 to ubound (ListOfDOFValues)…Next
- Parameters:
o_values (tuple) –
- Return type:
None