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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
DOFState

Interface representing a Basic Device from which to get
DOFState.

Role: This interface is used to interact with devices DOF state that are
available in the Device Building workbench. This includes devices created in
both V5 and D5.
The following code snippet can be used to obtain a device in a CATProduct
document.

Dim objDevice As DOFState
set 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:

oValues
This contains a list of the current DOF values. Please note that
distances are measured in meters and angles in radians.

Example:

Dim objDevice As DOFState
set objDevice = CATIA.ActiveDocument.Product.GetTechnologicalObject(“DOFState”)
Dim ListOfDOFValues ()
objDevice.GetDeviceDOFValues ListOfDOFValues
For i = 0 to ubound (ListOfDOFValues)
Next
Parameters:

o_values (tuple) –

Return type:

None