<?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: Referencing objects in group in subflow in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575851#M75074</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P id="isPasted"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/38374/marianusk.html" nodeid="38374"&gt;@Manus K&lt;/A&gt; ,&lt;/P&gt; 
&lt;P&gt;First, you have an exception because you where using a bad reference in the Delay activities. You were using tokenIndex to reference the row of a Global Table. I created a label called &lt;STRONG&gt;Index&lt;/STRONG&gt; in the source, so that you can use token.Index in the delay to reference the row.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt; 
&lt;P&gt;Then, I am not sure why the expression I showed you before wasn't working, but I managed to make it worked downcasting the expression to Group as you see here:&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt; 
&lt;P&gt;Hope this helps! Sorry I cannot send a model back, but I do not have the version you use, hope the screenshots are enough&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 11 Mar 2024 21:28:51 GMT</pubDate>
    <dc:creator>SebastianCanasV</dc:creator>
    <dc:date>2024-03-11T21:28:51Z</dc:date>
    <item>
      <title>Referencing objects in group in subflow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575846#M75069</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;I have a token with a label 'Group' referencing a specific group e.g. "Group1". Now I want to execute a subflow in which I create a token for each object within the group. Each of those tokens should carry a label 'Object' with a reference to a object in the group. &lt;/P&gt;
 &lt;P&gt;1. If I use token.Group.subnodes.length as Quantity in the Create Tokens activity I get a token for each object but one additional parent token for which I don't have any use. Is there a way not to carry the parent token through the subflow?&lt;/P&gt;
 &lt;P&gt;2. Object label&lt;/P&gt;
 &lt;P&gt;2.1 In another project I used Group("Group1")&lt;X&gt; but token.Group&lt;X&gt; does not seem to work. What's the right way to reference?&lt;/X&gt;&lt;/X&gt;&lt;/P&gt;
 &lt;P&gt;2.2 How do I defined the index 'x' in the correct way? In the other project I used [tokenIndex] but this seems to be a global index and not a 1,2,3,.. for each new set of tokens in the subflow. &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Mar 2024 19:52:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575846#M75069</guid>
      <dc:creator>marianuskick</dc:creator>
      <dc:date>2024-03-11T19:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing objects in group in subflow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575847#M75070</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/38374/marianusk.html" nodeid="38374"&gt;@Manus K&lt;/A&gt; ,&lt;BR /&gt;Assuming you have the reference for the group in a label &lt;STRONG&gt;Group&lt;/STRONG&gt;, you could set the Run Sub Flow as the image below:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Perhaps you missed the expression &lt;STRONG&gt;creationRank&lt;/STRONG&gt; that returns a numeric value. Here there is a short explanation:&lt;/P&gt;
&lt;P&gt;&lt;SPAN id="isPasted" style="color: rgb(0, 0, 0); font-family: Arial, Verdana, sans-serif; font-size: 14.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(203, 227, 250); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;When the &lt;/SPAN&gt;&lt;CODE style="box-sizing: border-box; border: 1px solid rgba(0, 0, 0, 0.1); scrollbar-color: initial; scrollbar-width: initial; --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-pan-x: ; --tw-pan-y: ; --tw-pinch-zoom: ; --tw-scroll-snap-strictness: proximity; --tw-gradient-from-position: ; --tw-gradient-via-position: ; --tw-gradient-to-position: ; --tw-ordinal: ; --tw-slashed-zero: ; --tw-numeric-figure: ; --tw-numeric-spacing: ; --tw-numeric-fraction: ; --tw-ring-inset: ; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgb(59 130 246 / .5); --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000; --tw-blur: ; --tw-brightness: ; --tw-contrast: ; --tw-grayscale: ; --tw-hue-rotate: ; --tw-invert: ; --tw-saturate: ; --tw-sepia: ; --tw-drop-shadow: ; --tw-backdrop-blur: ; --tw-backdrop-brightness: ; --tw-backdrop-contrast: ; --tw-backdrop-grayscale: ; --tw-backdrop-hue-rotate: ; --tw-backdrop-invert: ; --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ; font-family: "&gt;&lt;SPAN style="box-sizing: border-box; border-width: 0px; border-style: solid; border-color: rgb(229, 231, 235); scrollbar-color: initial; scrollbar-width: initial; --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-pan-x: ; --tw-pan-y: ; --tw-pinch-zoom: ; --tw-scroll-snap-strictness: proximity; --tw-gradient-from-position: ; --tw-gradient-via-position: ; --tw-gradient-to-position: ; --tw-ordinal: ; --tw-slashed-zero: ; --tw-numeric-figure: ; --tw-numeric-spacing: ; --tw-numeric-fraction: ; --tw-ring-inset: ; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgb(59 130 246 / .5); --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000; --tw-blur: ; --tw-brightness: ; --tw-contrast: ; --tw-grayscale: ; --tw-hue-rotate: ; --tw-invert: ; --tw-saturate: ; --tw-sepia: ; --tw-drop-shadow: ; --tw-backdrop-blur: ; --tw-backdrop-brightness: ; --tw-backdrop-contrast: ; --tw-backdrop-grayscale: ; --tw-backdrop-hue-rotate: ; --tw-backdrop-invert: ; --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ; scroll-margin-top: 5rem; color: rgb(95, 99, 100);"&gt;[&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; border-width: 0px; border-style: solid; border-color: rgb(229, 231, 235); scrollbar-color: initial; scrollbar-width: initial; --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-pan-x: ; --tw-pan-y: ; --tw-pinch-zoom: ; --tw-scroll-snap-strictness: proximity; --tw-gradient-from-position: ; --tw-gradient-via-position: ; --tw-gradient-to-position: ; --tw-ordinal: ; --tw-slashed-zero: ; --tw-numeric-figure: ; --tw-numeric-spacing: ; --tw-numeric-fraction: ; --tw-ring-inset: ; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgb(59 130 246 / .5); --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000; --tw-blur: ; --tw-brightness: ; --tw-contrast: ; --tw-grayscale: ; --tw-hue-rotate: ; --tw-invert: ; --tw-saturate: ; --tw-sepia: ; --tw-drop-shadow: ; --tw-backdrop-blur: ; --tw-backdrop-brightness: ; --tw-backdrop-contrast: ; --tw-backdrop-grayscale: ; --tw-backdrop-hue-rotate: ; --tw-backdrop-invert: ; --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ; scroll-margin-top: 5rem; color: rgb(102, 102, 102);"&gt;creationRank&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; border-width: 0px; border-style: solid; border-color: rgb(229, 231, 235); scrollbar-color: initial; scrollbar-width: initial; --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-pan-x: ; --tw-pan-y: ; --tw-pinch-zoom: ; --tw-scroll-snap-strictness: proximity; --tw-gradient-from-position: ; --tw-gradient-via-position: ; --tw-gradient-to-position: ; --tw-ordinal: ; --tw-slashed-zero: ; --tw-numeric-figure: ; --tw-numeric-spacing: ; --tw-numeric-fraction: ; --tw-ring-inset: ; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgb(59 130 246 / .5); --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000; --tw-blur: ; --tw-brightness: ; --tw-contrast: ; --tw-grayscale: ; --tw-hue-rotate: ; --tw-invert: ; --tw-saturate: ; --tw-sepia: ; --tw-drop-shadow: ; --tw-backdrop-blur: ; --tw-backdrop-brightness: ; --tw-backdrop-contrast: ; --tw-backdrop-grayscale: ; --tw-backdrop-hue-rotate: ; --tw-backdrop-invert: ; --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ; scroll-margin-top: 5rem; color: rgb(95, 99, 100);"&gt;]&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Arial, Verdana, sans-serif; font-size: 14.6667px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(203, 227, 250); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt; part of the expression is evaluated for the first created child token, the creationRank will have a value of 1. When it is evaluated for the second created child token, creationRank will have a value of 2, and so forth.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Mar 2024 20:41:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575847#M75070</guid>
      <dc:creator>SebastianCanasV</dc:creator>
      <dc:date>2024-03-11T20:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing objects in group in subflow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575848#M75071</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/38374/marianusk.html" nodeid="38374"&gt;@Manus K&lt;/A&gt; ,&lt;P&gt;Could you please upload your model or a demo of the logic you built?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Mar 2024 20:52:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575848#M75071</guid>
      <dc:creator>SebastianCanasV</dc:creator>
      <dc:date>2024-03-11T20:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing objects in group in subflow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575849#M75072</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/80199-mtbfmttr-2.fsm" target="_blank"&gt;MTBFMTTR_2.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Mar 2024 20:55:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575849#M75072</guid>
      <dc:creator>marianuskick</dc:creator>
      <dc:date>2024-03-11T20:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing objects in group in subflow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575850#M75073</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted" style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: "&gt;Thanks, Sebastian.&lt;/P&gt;
 &lt;P style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: "&gt;For the quantity I'm using token.Group.subnodes.length which seems to work.&lt;/P&gt;
 &lt;P style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: "&gt;The creationRank sounds super useful but I am unable to access the object with token.Group&lt;X&gt; even if I used token.Group[1] for testing purposes. token.Group.subnodes&lt;X&gt; also doesn't work.&lt;/X&gt;&lt;/X&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Mar 2024 20:56:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575850#M75073</guid>
      <dc:creator>marianuskick</dc:creator>
      <dc:date>2024-03-11T20:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing objects in group in subflow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575851#M75074</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P id="isPasted"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/38374/marianusk.html" nodeid="38374"&gt;@Manus K&lt;/A&gt; ,&lt;/P&gt; 
&lt;P&gt;First, you have an exception because you where using a bad reference in the Delay activities. You were using tokenIndex to reference the row of a Global Table. I created a label called &lt;STRONG&gt;Index&lt;/STRONG&gt; in the source, so that you can use token.Index in the delay to reference the row.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt; 
&lt;P&gt;Then, I am not sure why the expression I showed you before wasn't working, but I managed to make it worked downcasting the expression to Group as you see here:&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt; 
&lt;P&gt;Hope this helps! Sorry I cannot send a model back, but I do not have the version you use, hope the screenshots are enough&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Mar 2024 21:28:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575851#M75074</guid>
      <dc:creator>SebastianCanasV</dc:creator>
      <dc:date>2024-03-11T21:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing objects in group in subflow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575852#M75075</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you! That's working just fine!&lt;/P&gt;
 &lt;P&gt;What's the reason behind tokenIndex not working? Does that only work directly in activities?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Mar 2024 22:18:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575852#M75075</guid>
      <dc:creator>marianuskick</dc:creator>
      <dc:date>2024-03-11T22:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing objects in group in subflow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575853#M75076</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/38374/marianusk.html" nodeid="38374"&gt;@Manus K&lt;/A&gt; ,&lt;P&gt;As far as I know &lt;STRONG&gt;tokenIndex&lt;/STRONG&gt; is an expression that only works in &lt;STRONG&gt;Schedule Source&lt;/STRONG&gt; and from 23.2 or 24.0 (don't remember well) in &lt;STRONG&gt;Date-Time Source &lt;/STRONG&gt;as well. If you try to use it in any other Process Flow activity it won't work.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Mar 2024 22:24:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referencing-objects-in-group-in-subflow/m-p/13575853#M75076</guid>
      <dc:creator>SebastianCanasV</dc:creator>
      <dc:date>2024-03-11T22:24:40Z</dc:date>
    </item>
  </channel>
</rss>

