<?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: Issue with new item.type syntax in 2017 in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/issue-with-new-item-type-syntax-in-2017/m-p/13514538#M26809</link>
    <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://answers.flexsim.com/users/206/phil.b.html" nodeid="206"&gt;@phil.bobo&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;I needed to delete the markup and its features. I appreciate the help.&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2017 23:56:55 GMT</pubDate>
    <dc:creator>cameron_seams1</dc:creator>
    <dc:date>2017-05-04T23:56:55Z</dc:date>
    <item>
      <title>Issue with new item.type syntax in 2017</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/issue-with-new-item-type-syntax-in-2017/m-p/13514536#M26807</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am changing the syntax of item.type in the SET ITEM TYPE BY PERCENT code to setitemtype(item,2). Once I alter the code, it keeps reverting back to item.type. How do I avoid this? Code is below.&lt;/P&gt;
&lt;P&gt;Original Code:&lt;/P&gt;
&lt;PRE&gt;int stream = /**\nStream number:*//***tag:stream*//**/0/**/;
double randomnum = uniform(0.0, 100.0, stream);
double total = 0.0;
int foundmatch = 0;
total += /**\nPercent: *//**/Percent/**/;
if (!foundmatch &amp;amp;&amp;amp; randomnum &amp;lt;= total)
{ item.type = /** Type: *//**/2/**/;
foundmatch = 1; }
New Code:
total += /**\nPercent: *//**/Percent/**/;
if (!foundmatch &amp;amp;&amp;amp; randomnum &amp;lt;= total) {
setitemtype(item,2);
foundmatch = 1; }
&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 May 2017 18:43:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/issue-with-new-item-type-syntax-in-2017/m-p/13514536#M26807</guid>
      <dc:creator>cameron_seams1</dc:creator>
      <dc:date>2017-05-04T18:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with new item.type syntax in 2017</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/issue-with-new-item-type-syntax-in-2017/m-p/13514537#M26808</link>
      <description>&lt;P&gt;It reverts back if you edit it using the popup:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="6585-popup.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1495407i1493CB758A9612D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="6585-popup.png" alt="6585-popup.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="6586-popup2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1495409i03000C0E8E677CF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="6586-popup2.png" alt="6586-popup2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The popup is populated based on the markup in the code. It then generates the appropriate code based on the popup.&lt;/P&gt;&lt;P&gt;If you want to customize the code in the picklist, you can press this button to delete the markup and its features:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="6587-clear-markup.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1495410iA627AF0488FB0EA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="6587-clear-markup.png" alt="6587-clear-markup.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 19:44:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/issue-with-new-item-type-syntax-in-2017/m-p/13514537#M26808</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2017-05-04T19:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with new item.type syntax in 2017</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/issue-with-new-item-type-syntax-in-2017/m-p/13514538#M26809</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://answers.flexsim.com/users/206/phil.b.html" nodeid="206"&gt;@phil.bobo&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;I needed to delete the markup and its features. I appreciate the help.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 23:56:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/issue-with-new-item-type-syntax-in-2017/m-p/13514538#M26809</guid>
      <dc:creator>cameron_seams1</dc:creator>
      <dc:date>2017-05-04T23:56:55Z</dc:date>
    </item>
  </channel>
</rss>

