<?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: Access Object attribute tree in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599696#M93663</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi Jason,&lt;BR /&gt;Can you give me a sample code so that i can build, lets say we check&lt;BR /&gt; 1. "global instance" value = Available: size (Red Box)&lt;BR /&gt; 2. "content" value (green box)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1721395826808.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524673iB43AC55825A0D213/image-size/large?v=v2&amp;amp;px=999" role="button" title="1721395826808.png" alt="1721395826808.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/84915-test.fsm" target="_blank"&gt;Test.fsm&lt;/A&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Arun&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 19 Jul 2024 13:32:08 GMT</pubDate>
    <dc:creator>Arun4</dc:creator>
    <dc:date>2024-07-19T13:32:08Z</dc:date>
    <item>
      <title>Access Object attribute tree</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599692#M93659</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi,&lt;BR /&gt;Is there a way to access "Attribute tree" in code.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1721323718705.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524674i58EBA22DED64110F/image-size/large?v=v2&amp;amp;px=999" role="button" title="1721323718705.png" alt="1721323718705.png" /&gt;&lt;/span&gt;I tried using DOT function but no result.&lt;BR /&gt;&lt;BR /&gt;br&lt;BR /&gt;Arun&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jul 2024 17:29:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599692#M93659</guid>
      <dc:creator>Arun4</dc:creator>
      <dc:date>2024-07-18T17:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Access Object attribute tree</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599693#M93660</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Many of the attributes can be accessed through the "attrs" property.&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#Property-attrs"&gt;https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#Property-attrs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In a path string, entering an object's attributes is done through "&amp;gt;" (&lt;EM&gt;Model.find("Processor1&amp;gt;stats"&lt;/EM&gt;), for example). See the documentation on the "find" method for more information about how to traverse the model tree.&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html#Method-find"&gt;https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html#Method-find&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jul 2024 06:05:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599693#M93660</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-07-19T06:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Access Object attribute tree</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599694#M93661</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi Felix&lt;BR /&gt;Thanks for the answer&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jul 2024 06:56:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599694#M93661</guid>
      <dc:creator>Arun4</dc:creator>
      <dc:date>2024-07-19T06:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Access Object attribute tree</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599695#M93662</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;When the node text is blue you can also use that name as a keyword, passing in the object  eg:&lt;/P&gt;&lt;PRE&gt;behaviour(current)&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jul 2024 09:50:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599695#M93662</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-07-19T09:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Access Object attribute tree</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599696#M93663</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi Jason,&lt;BR /&gt;Can you give me a sample code so that i can build, lets say we check&lt;BR /&gt; 1. "global instance" value = Available: size (Red Box)&lt;BR /&gt; 2. "content" value (green box)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1721395826808.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524673iB43AC55825A0D213/image-size/large?v=v2&amp;amp;px=999" role="button" title="1721395826808.png" alt="1721395826808.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/84915-test.fsm" target="_blank"&gt;Test.fsm&lt;/A&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Arun&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jul 2024 13:32:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599696#M93663</guid>
      <dc:creator>Arun4</dc:creator>
      <dc:date>2024-07-19T13:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Access Object attribute tree</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599697#M93664</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;PRE&gt;Object activity=getactivity("ProcessFlow", "RS1");
int content =activity.stats.content.value;
int numavailable=stats(activity).find("globalInstance/available").subnodes.length;
print (activity, "content:", content,"avaialable:",numavailable);&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jul 2024 13:45:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599697#M93664</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-07-19T13:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Access Object attribute tree</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599698#M93665</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks Jason!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jul 2024 13:56:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-object-attribute-tree/m-p/13599698#M93665</guid>
      <dc:creator>Arun4</dc:creator>
      <dc:date>2024-07-19T13:56:08Z</dc:date>
    </item>
  </channel>
</rss>

