<?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 FloWorks: FlowTank initial content from a global table in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/floworks-flowtank-initial-content-from-a-global-table/m-p/13501769#M16782</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi,&lt;/P&gt;
 &lt;P&gt;Attached there is a image from a very simple model where I try to set the initial content for a FlowTank based on a global table. When setting value using Set flow content, content is updated as expected but the flow state of the tank stays as "Empty" because Initial Cont. for the tank's 3D object is set to 0. Setting this &lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;"Initial Cont."&lt;/SPAN&gt; parameter directly from the table doesn't seem to be possible either.&lt;/P&gt;
 &lt;P&gt;So is there a way to set initial content in a way that would also update the state automatically, or is the best solution to just manually set the initial state at the same time when setting the content?&lt;span class="lia-inline-image-display-wrapper" image-alt="1667209332396.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1513655i85F4444812F48E7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1667209332396.png" alt="1667209332396.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 31 Oct 2022 09:59:38 GMT</pubDate>
    <dc:creator>ville_t3</dc:creator>
    <dc:date>2022-10-31T09:59:38Z</dc:date>
    <item>
      <title>FloWorks: FlowTank initial content from a global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/floworks-flowtank-initial-content-from-a-global-table/m-p/13501769#M16782</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi,&lt;/P&gt;
 &lt;P&gt;Attached there is a image from a very simple model where I try to set the initial content for a FlowTank based on a global table. When setting value using Set flow content, content is updated as expected but the flow state of the tank stays as "Empty" because Initial Cont. for the tank's 3D object is set to 0. Setting this &lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;"Initial Cont."&lt;/SPAN&gt; parameter directly from the table doesn't seem to be possible either.&lt;/P&gt;
 &lt;P&gt;So is there a way to set initial content in a way that would also update the state automatically, or is the best solution to just manually set the initial state at the same time when setting the content?&lt;span class="lia-inline-image-display-wrapper" image-alt="1667209332396.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1513655i85F4444812F48E7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1667209332396.png" alt="1667209332396.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Oct 2022 09:59:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/floworks-flowtank-initial-content-from-a-global-table/m-p/13501769#M16782</guid>
      <dc:creator>ville_t3</dc:creator>
      <dc:date>2022-10-31T09:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: FloWorks: FlowTank initial content from a global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/floworks-flowtank-initial-content-from-a-global-table/m-p/13501770#M16783</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Please let your model run. Then stop your model run. Then check the statistic again. Any change of parameter needs a run of model to reflect any change!&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Oct 2022 10:27:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/floworks-flowtank-initial-content-from-a-global-table/m-p/13501770#M16783</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2022-10-31T10:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: FloWorks: FlowTank initial content from a global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/floworks-flowtank-initial-content-from-a-global-table/m-p/13501771#M16784</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/41554/villet3.html" nodeid="41554"&gt;@Ville Teivastenaho&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;You can set the initial content of a tank in your global OnModelReset trigger in the toolbox. The code you would use is something like this:&lt;/P&gt;&lt;PRE&gt;FlowTank tank = Model.find("Cylindric1");
double startContent = 100; //Read from global table
tank.setProperty( "InitialContent", startContent );&lt;/PRE&gt;&lt;P&gt;The reason just setting the content in processFlow does not work is because there is no change in flow happening because of your change. Currently only when flow rates change the status is updated. This could be something to change in a new version. I have put this on the dev list.&lt;BR /&gt;&lt;BR /&gt;If you don't want the OnModelReset code you could also set the state of the tank yourself in the processFlow.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Oct 2022 10:34:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/floworks-flowtank-initial-content-from-a-global-table/m-p/13501771#M16784</guid>
      <dc:creator>patrick_zweekhorst</dc:creator>
      <dc:date>2022-10-31T10:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: FloWorks: FlowTank initial content from a global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/floworks-flowtank-initial-content-from-a-global-table/m-p/13501772#M16785</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P style="line-height:1.656;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;"&gt;&lt;SPAN style="font-size:11.5pt;font-family:Arial;color:#414141;background-color:#ffffff;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;"&gt;Thank you! I thought it must somehow be related to when the states are updated. I don't see this as a problem, it just something to keep in mind if you need to manually change content somewhere else than in OnModelReset.&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P style="line-height:1.38;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 8pt 0pt;"&gt; &lt;/P&gt;
 &lt;P style="line-height:1.656;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;"&gt;&lt;SPAN style="font-size:11.5pt;font-family:Arial;color:#414141;background-color:#ffffff;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;"&gt;For some reason I couldn’t get tank.setProperty to work in this case, but managed to do same thing with:&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P style="line-height:1.656;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;"&gt; &lt;/P&gt;
 &lt;PRE style="line-height:1.656;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;"&gt;setvarnum(tank, "initialcontent", startContent)&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Oct 2022 11:44:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/floworks-flowtank-initial-content-from-a-global-table/m-p/13501772#M16785</guid>
      <dc:creator>ville_t3</dc:creator>
      <dc:date>2022-10-31T11:44:37Z</dc:date>
    </item>
  </channel>
</rss>

