<?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: How to use Model.find to access label contained in variable in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-model-find-to-access-label-contained-in-variable/m-p/13522517#M33019</link>
    <description>&lt;P&gt;The syntax you would need is:&lt;/P&gt;&lt;PRE&gt;Model.find(InputVariableController").labels[propertyName].value&lt;/PRE&gt;&lt;P&gt;By using the propertyName variable in the brackets like that, you searching for the string name of the label.  Otherwise it assumes that the label is literally named propertyName.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2020 15:47:10 GMT</pubDate>
    <dc:creator>regan_blackett</dc:creator>
    <dc:date>2020-01-15T15:47:10Z</dc:date>
    <item>
      <title>How to use Model.find to access label contained in variable</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-model-find-to-access-label-contained-in-variable/m-p/13522516#M33018</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Hello, I am trying to store a label &lt;U&gt;name&lt;/U&gt; in a variable, and then use Model.find("object").storedLabel to change the value of the &lt;U&gt;physical&lt;/U&gt; label. But I am unable to figure out how to do this. This is what I currently have:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="24938-capture.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1501089i4CB49BC16D008041/image-size/large?v=v2&amp;amp;px=999" role="button" title="24938-capture.png" alt="24938-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When I use Model.find("InputVariableController").propertyName, this code is not accessing the physical label of the InputVariableController.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 15:41:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-model-find-to-access-label-contained-in-variable/m-p/13522516#M33018</guid>
      <dc:creator>zach_b3</dc:creator>
      <dc:date>2020-01-15T15:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Model.find to access label contained in variable</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-model-find-to-access-label-contained-in-variable/m-p/13522517#M33019</link>
      <description>&lt;P&gt;The syntax you would need is:&lt;/P&gt;&lt;PRE&gt;Model.find(InputVariableController").labels[propertyName].value&lt;/PRE&gt;&lt;P&gt;By using the propertyName variable in the brackets like that, you searching for the string name of the label.  Otherwise it assumes that the label is literally named propertyName.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 15:47:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-model-find-to-access-label-contained-in-variable/m-p/13522517#M33019</guid>
      <dc:creator>regan_blackett</dc:creator>
      <dc:date>2020-01-15T15:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Model.find to access label contained in variable</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-model-find-to-access-label-contained-in-variable/m-p/13522518#M33020</link>
      <description>&lt;P&gt;Thanks for the quick reply. This solved the problem, and now my labels are updating, but it is giving me this error: &lt;/P&gt;
&lt;P&gt;FlexScript exception: Property "value" accessed on invalid node. at MODEL:/Tools/GlobalTables/OutputExcelInput&amp;gt;variables/resettrigger&lt;/P&gt;
&lt;P&gt;I am storing this code in the reset trigger of one of my global tables. &lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 16:03:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-model-find-to-access-label-contained-in-variable/m-p/13522518#M33020</guid>
      <dc:creator>zach_b3</dc:creator>
      <dc:date>2020-01-15T16:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Model.find to access label contained in variable</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-model-find-to-access-label-contained-in-variable/m-p/13522519#M33021</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://answers.flexsim.com/users/19347/zachb3.html" nodeid="19347"&gt;@Zach B3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Could you upload the model that has this error? &lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 16:03:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-model-find-to-access-label-contained-in-variable/m-p/13522519#M33021</guid>
      <dc:creator>braydn_t</dc:creator>
      <dc:date>2020-01-15T16:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Model.find to access label contained in variable</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-model-find-to-access-label-contained-in-variable/m-p/13522520#M33022</link>
      <description>&lt;P&gt;I actually just figured out the issue - there were not enough rows in the table which was causing this error. Thanks so much!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 16:10:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-model-find-to-access-label-contained-in-variable/m-p/13522520#M33022</guid>
      <dc:creator>zach_b3</dc:creator>
      <dc:date>2020-01-15T16:10:47Z</dc:date>
    </item>
  </channel>
</rss>

