<?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: Extract Activity End Time From Token In a Delay in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/extract-activity-end-time-from-token-in-a-delay/m-p/13666784#M96484</link>
    <description>&lt;P&gt;As the token node is a &lt;A href="https://docs.flexsim.com/en/25.1/Reference/DeveloperAdvancedUser/ModuleSDK/Reference/Classes/SimpleDataType/SimpleDataType.html" target="_blank" rel="noopener"&gt;SimpleDataType&lt;/A&gt;, you will need to use the command&amp;nbsp;&lt;STRONG&gt;getsdtvalue() &lt;/STRONG&gt;to get values in the node. For your case, this code should give you the value you want:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;treenode token = Model.find("Tools/ProcessFlow/ProcessFlow&amp;gt;stats/instances/ProcessFlow/tokens/Widget");
getsdtvalue(token, "data[1]");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 02:15:32 GMT</pubDate>
    <dc:creator>xavier_low</dc:creator>
    <dc:date>2025-06-05T02:15:32Z</dc:date>
    <item>
      <title>Extract Activity End Time From Token In a Delay</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/extract-activity-end-time-from-token-in-a-delay/m-p/13666554#M96482</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nmzenke_0-1749070592977.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1540345i51FD7F2B9344A3B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nmzenke_0-1749070592977.png" alt="nmzenke_0-1749070592977.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nmzenke_1-1749070654886.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1540346i62082E6FB880A821/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nmzenke_1-1749070654886.png" alt="nmzenke_1-1749070654886.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble figuring out the correct flexscript to pull data out of the tree when it's stored like shown. I'd like to be able to pull out the sim exit time from the current delay activity as shown in the pictures. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 21:01:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/extract-activity-end-time-from-token-in-a-delay/m-p/13666554#M96482</guid>
      <dc:creator>nmzenke</dc:creator>
      <dc:date>2025-06-04T21:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Activity End Time From Token In a Delay</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/extract-activity-end-time-from-token-in-a-delay/m-p/13666784#M96484</link>
      <description>&lt;P&gt;As the token node is a &lt;A href="https://docs.flexsim.com/en/25.1/Reference/DeveloperAdvancedUser/ModuleSDK/Reference/Classes/SimpleDataType/SimpleDataType.html" target="_blank" rel="noopener"&gt;SimpleDataType&lt;/A&gt;, you will need to use the command&amp;nbsp;&lt;STRONG&gt;getsdtvalue() &lt;/STRONG&gt;to get values in the node. For your case, this code should give you the value you want:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;treenode token = Model.find("Tools/ProcessFlow/ProcessFlow&amp;gt;stats/instances/ProcessFlow/tokens/Widget");
getsdtvalue(token, "data[1]");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 02:15:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/extract-activity-end-time-from-token-in-a-delay/m-p/13666784#M96484</guid>
      <dc:creator>xavier_low</dc:creator>
      <dc:date>2025-06-05T02:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Activity End Time From Token In a Delay</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/extract-activity-end-time-from-token-in-a-delay/m-p/13668108#M96511</link>
      <description>&lt;P&gt;Thanks Xavier. That does work...only thing I'll mention for others reading this is that in the help for the getsdtvalue() command it looks like one should be careful as the command might not work at some point in the future&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nmzenke_0-1749138433865.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1540682i500A71D4EECF15A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nmzenke_0-1749138433865.png" alt="nmzenke_0-1749138433865.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 15:47:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/extract-activity-end-time-from-token-in-a-delay/m-p/13668108#M96511</guid>
      <dc:creator>nmzenke</dc:creator>
      <dc:date>2025-06-05T15:47:49Z</dc:date>
    </item>
  </channel>
</rss>

