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")
Methods
- Sub GetDeviceDOFValues( 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. dd>
- Example:
-
Dim objDevice As DOFState set objDevice = CATIA.ActiveDocument.Product.GetTechnologicalObject("DOFState") Dim ListOfDOFValues () objDevice.GetDeviceDOFValues ListOfDOFValues For i = 0 to ubound (ListOfDOFValues) ... Next