All Frameworks  Object Hierarchy  This Framework  Indexes   

DOFState (Object)

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")
 

Method Index

GetDeviceDOFValues
Get the DOF values for the device.

Methods


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

Copyright © 2003, Dassault Systèmes. All rights reserved.