<?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: Update patient label with Global process? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/update-patient-label-with-global-process/m-p/13509181#M22580</link>
    <description>&lt;P&gt;Thanks Matt, That's the insight I'm looking for. I'm still learning how Flexsim thinks.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 16:55:15 GMT</pubDate>
    <dc:creator>rob_davies1</dc:creator>
    <dc:date>2017-04-19T16:55:15Z</dc:date>
    <item>
      <title>Update patient label with Global process?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/update-patient-label-with-global-process/m-p/13509179#M22578</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim HC 5.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I want to make EVERY PATIENT in my model age yearly. I'm guessing a global process would do this, but I cannot get the label to update.&lt;/P&gt;
&lt;P&gt;I'm using patiet label "AgeNow" to track age. I setup global process to kick off at time zero and repeat every 60 min. (scale: 60 min model time = 1 year)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="6328-jai5f.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1495334i56FF1DC0D56DDC35/image-size/large?v=v2&amp;amp;px=999" role="button" title="6328-jai5f.png" alt="6328-jai5f.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And I've set the finished trigger activity to increment the variable.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="6329-yjild.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1495335i9F0AC9111F52829F/image-size/large?v=v2&amp;amp;px=999" role="button" title="6329-yjild.png" alt="6329-yjild.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I know the global process is running because I added a MSG() code to pop up. I'm not sure what I'm missing. Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:10:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/update-patient-label-with-global-process/m-p/13509179#M22578</guid>
      <dc:creator>rob_davies1</dc:creator>
      <dc:date>2017-04-19T15:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Update patient label with Global process?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/update-patient-label-with-global-process/m-p/13509180#M22579</link>
      <description>&lt;P&gt;A global process is not associated with any patients (thus the term "global"). The patient variable in a global process is a reference to the global process itself, so you're setting a label on the global process, but not on any patients. You would need to write some code to loop through all the object's in the model to find all the patients and then increment their label. For example:&lt;/P&gt;&lt;PRE&gt;forobjecttreeunder(model()) {
	if(getobjecttype(a) == OBJECT_Patient)
		inc(label(a, "AgeNow"), 1);
}
&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:48:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/update-patient-label-with-global-process/m-p/13509180#M22579</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2017-04-19T15:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update patient label with Global process?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/update-patient-label-with-global-process/m-p/13509181#M22580</link>
      <description>&lt;P&gt;Thanks Matt, That's the insight I'm looking for. I'm still learning how Flexsim thinks.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 16:55:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/update-patient-label-with-global-process/m-p/13509181#M22580</guid>
      <dc:creator>rob_davies1</dc:creator>
      <dc:date>2017-04-19T16:55:15Z</dc:date>
    </item>
  </channel>
</rss>

