Message 1 of 10
Not applicable
12-15-2012
02:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I would like to change default units for forces with Robot API, and set N instead of kN.
Here is my script :
Dim projPref As RobotProjectPreferences
projPref = Robot.Project.Preferences
projPref.Units.Set(IRobotUnitType.I_UT_FORCE, N)
The last line does not work (red part).
What is the appropriate syntax to set the unit to Newtons ?
Solved! Go to Solution.

