<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Robot API - how to modify units in Robot Structural Analysis Forum</title>
    <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3738858#M79786</link>
    <description>&lt;PRE&gt;Dim RUCD As RobotUnitComplexData
Set RUCD = projPref.Units.Get(I_UT_MOMENT)

RUCD.E = False
RUCD.Name = "daN"
RUCD.Name2 = "m"
RUCD.Precision = 2

projPref.Units.Set I_UT_MOMENT, RUCD&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Dec 2012 10:23:19 GMT</pubDate>
    <dc:creator>Rafal.Gaweda</dc:creator>
    <dc:date>2012-12-18T10:23:19Z</dc:date>
    <item>
      <title>Robot API - how to modify units</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3737797#M79782</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to change default units for forces with Robot API, and set N instead of kN.&lt;/P&gt;&lt;P&gt;Here is my script :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim projPref As RobotProjectPreferences&lt;/P&gt;&lt;P&gt;projPref = Robot.Project.Preferences&lt;BR /&gt;projPref.Units.Set(IRobotUnitType.I_UT_FORCE, &lt;FONT color="#FF0000"&gt;N&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last line does not work (red part).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the appropriate syntax to set the unit to Newtons ?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2012 22:53:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3737797#M79782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-15T22:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API - how to modify units</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3738132#M79783</link>
      <description>&lt;PRE&gt;Dim Robot As New RobotApplication
Dim projPref As RobotProjectPreferences
Set projPref = Robot.Project.Preferences

Dim RU As RobotUnitData
Set RU = projPref.Units.Get(I_UT_FORCE)

RU.E = False
RU.Name = "N"
RU.Precision = 2

projPref.Units.Set I_UT_FORCE, RU&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2012 10:43:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3738132#M79783</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-12-17T10:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API - how to modify units</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3738578#M79784</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2012 20:50:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3738578#M79784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-17T20:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API - how to modify units</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3738594#M79785</link>
      <description>&lt;P&gt;It works for forces, but it does not work for moments. Here is my code :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim projPref As RobotProjectPreferences&lt;BR /&gt;Dim RU As RobotUnitData&lt;BR /&gt;projPref = Robot.Project.Preferences&lt;BR /&gt;RU = projPref.Units.Get(IRobotUnitType.I_UT_FORCE)&lt;BR /&gt;RU.E = False&lt;BR /&gt;RU.Name = "daN"&lt;BR /&gt;RU.Precision = 2&lt;BR /&gt;projPref.Units.Set(IRobotUnitType.I_UT_FORCE, RU)&lt;BR /&gt;RU = Nothing&lt;BR /&gt;RU = projPref.Units.Get(IRobotUnitType.I_UT_MOMENT)&lt;BR /&gt;RU.E = False&lt;BR /&gt;RU.Name = "daN*m"&lt;BR /&gt;RU.Precision = 2&lt;BR /&gt;projPref.Units.Set(IRobotUnitType.I_UT_MOMENT, RU)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't get any error message, but it does not work for moment, whereas it works for forces.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2012 21:02:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3738594#M79785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-17T21:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API - how to modify units</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3738858#M79786</link>
      <description>&lt;PRE&gt;Dim RUCD As RobotUnitComplexData
Set RUCD = projPref.Units.Get(I_UT_MOMENT)

RUCD.E = False
RUCD.Name = "daN"
RUCD.Name2 = "m"
RUCD.Precision = 2

projPref.Units.Set I_UT_MOMENT, RUCD&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2012 10:23:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3738858#M79786</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-12-18T10:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API - how to modify units</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3739456#M79787</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2012 21:10:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3739456#M79787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-18T21:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API - how to modify units</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3741912#M79788</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry to come back again to this topic which appears as solved, but there is still a problem with units in my script. In Robot, if I go to Tools&amp;gt;Project Preferences&amp;gt;Units&amp;gt;Force, I can see that kN changed to daN, as I wanted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that when I calculate and then display the forces array (Results&amp;gt;Forces), forces are still in kN in the array. So I have to go to&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Tools&amp;gt;Project Preferences&amp;gt;Units&amp;gt;Force and quit, and then the array is updated and forces appear in daN.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So there is a kind of "refresh" problem for units. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Same problem if I want to diplay forces diagrams. Unless I open&amp;nbsp;&lt;SPAN&gt;Tools&amp;gt;Project Preferences&amp;gt;Units&amp;gt;Force, forces are still in kN.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I fix this ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 22:21:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3741912#M79788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-21T22:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API - how to modify units</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3742257#M79789</link>
      <description>&lt;P&gt;That's interesting, we have to check it.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2012 07:32:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3742257#M79789</guid>
      <dc:creator>Rafal.Gaweda</dc:creator>
      <dc:date>2012-12-24T07:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API - how to modify units</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3751841#M79790</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Any answer to my problem ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jan 2013 14:01:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3751841#M79790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-13T14:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Robot API - how to modify units</title>
      <link>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3752112#M79791</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;It will not be possible for us&amp;nbsp;to investigate this situation&amp;nbsp;before the next week.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to add &lt;STRONG&gt;projPref.Units.Refresh &lt;/STRONG&gt;at the end of your code.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 08:09:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/robot-structural-analysis-forum/robot-api-how-to-modify-units/m-p/3752112#M79791</guid>
      <dc:creator>Artur.Kosakowski</dc:creator>
      <dc:date>2013-01-14T08:09:54Z</dc:date>
    </item>
  </channel>
</rss>

