DNBDeviceInterfaces BasicDevice (Object)
All Frameworks Object Hierarchy This Framework Indexes
BasicDevice (Object)
Interface representing a Basic Device.
Role : This interface is used to interact with devices 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 BasicDevice
set objDevice = CATIA.ActiveDocument.Product.GetTechnologicalObject("BasicDevice")
Method Index
GetDOFValues
Get the DOF values for the device.
GetHomePositions
Get list of home positions of the device.
SetHomePosition
Set home position of the device.
Methods
o Sub GetDOFValues ( 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 BasicDevice
set objDevice = CATIA.ActiveDocument.Product.GetTechnologicalObject("BasicDevice")
Dim ListOfDOFValues ()
objDevice.GetDOFValues ListOfDOFValues
For i = 0 to ubound (ListOfDOFValues)
...
Next
o Sub GetHomePositions ( oHomePosList )
Get list of home positions of the device.
Parameters:
oHomePosList
This outer parameter contains list of home position .
Returns:
An HRESULT
o Sub SetHomePosition ( iName , idbTrans )
Set home position of the device.
Parameters:
iName
This parameter contains name of home position .
idbTrans
This parameter contains distance data in Meters
or angular data in degree radian.
Returns:
HRESULT indicate whether function succeed.
Copyright © 2003, Dassault Systèmes. All rights reserved.