<?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: Set Spatial attributes with C++ in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/set-spatial-attributes-with-c/m-p/13542163#M48662</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 It Worked, thank you!
&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Jul 2021 17:11:46 GMT</pubDate>
    <dc:creator>sergio_v6</dc:creator>
    <dc:date>2021-07-09T17:11:46Z</dc:date>
    <item>
      <title>Set Spatial attributes with C++</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/set-spatial-attributes-with-c/m-p/13542161#M48660</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Hello.&lt;/P&gt;
 &lt;P&gt;I'm trying to set the spatial attributes of an object using c++ code, i can access the treenode and change the name, but i don't know how to change these values. how i can do it?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1625775149729.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1506711i1A57DDA2F27C0F45/image-size/large?v=v2&amp;amp;px=999" role="button" title="1625775149729.png" alt="1625775149729.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1625775133630.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1506713i9D7033CCAE00C32B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1625775133630.png" alt="1625775133630.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Jul 2021 20:16:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/set-spatial-attributes-with-c/m-p/13542161#M48660</guid>
      <dc:creator>sergio_v6</dc:creator>
      <dc:date>2021-07-08T20:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Spatial attributes with C++</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/set-spatial-attributes-with-c/m-p/13542162#M48661</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The setLocation method is on the ObjectDataType class, so you have to cast the treenode to ObjectDataType:&lt;/P&gt;&lt;PRE&gt;obj-&amp;gt;objectAs(ObjectDataType)-&amp;gt;setLocation(0, 0, 0);&lt;/PRE&gt;&lt;P&gt;Alternatively you can use the setloc() command which just takes a treenode:&lt;/P&gt;&lt;PRE&gt;setloc(obj, 0, 0, 0);&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Jul 2021 23:29:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/set-spatial-attributes-with-c/m-p/13542162#M48661</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2021-07-08T23:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Spatial attributes with C++</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/set-spatial-attributes-with-c/m-p/13542163#M48662</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 It Worked, thank you!
&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Jul 2021 17:11:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/set-spatial-attributes-with-c/m-p/13542163#M48662</guid>
      <dc:creator>sergio_v6</dc:creator>
      <dc:date>2021-07-09T17:11:46Z</dc:date>
    </item>
  </channel>
</rss>

