<?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: intersection problem in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579464#M77855</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In your question you mentioned that it was a lot of work to recreate all the paths, so I posted this script to show that it's really very quick. &lt;/P&gt;&lt;P&gt;It's not intended to fix the problem but could if, once you have the tables, you change the z part of the locations to zero before the insert statements. That &lt;EM&gt;can&lt;/EM&gt; be done altering the table values between reading them and reinserting them into Objects() but you could also do the same thing in FlexScript to alter the path properties. Both are good exercises if you're not familiar with either.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 28 Sep 2023 12:33:29 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2023-09-28T12:33:29Z</dc:date>
    <item>
      <title>intersection problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579458#M77849</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.11 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P id="isPasted"&gt;Please check the attached file.&lt;/P&gt;&lt;P&gt;This is part of the data.&lt;/P&gt;&lt;P&gt;This model was created on 2023.0.8.&lt;/P&gt;&lt;P&gt;I have checked Create Transfer at Crossing in AGV Network Properties, but no intersection is created.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2023092701.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1520248iF2ED5BB9F88F2BB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023092701.png" alt="2023092701.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know that intersection points can be created by recreating the path on 2023.0.11, but there are many and it is difficult. (This is part of the data, there is actually more path information)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is there a way to create an intersection other than recreating the path?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/74173-intersection-problem.fsm" target="_blank"&gt;intersection problem.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Sep 2023 03:01:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579458#M77849</guid>
      <dc:creator>tsuji_ryusuke</dc:creator>
      <dc:date>2023-09-27T03:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: intersection problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579459#M77850</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;SPAN id="isPasted" style="color: rgb(17, 17, 17); font-family: -apple-system, Roboto, SegoeUI, ;"&gt;Thank you for your question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgb(17, 17, 17); font-family: -apple-system, Roboto, SegoeUI, ;"&gt;I’m not exactly sure why, but if you select all the paths with issues and set the Z location to 0,retype 0 and hit enter, everything should work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgb(17, 17, 17); font-family: -apple-system, Roboto, SegoeUI, ;"&gt;I hope this helps! &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Sep 2023 11:44:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579459#M77850</guid>
      <dc:creator>nilP8GEZ</dc:creator>
      <dc:date>2023-09-27T11:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: intersection problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579460#M77851</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;This because some of the paths have non-zero z values which you can see if you change the displayed decimal precision:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1695816936733.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1520247i9C8E100BAE6981F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1695816936733.png" alt="1695816936733.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, we don't need to worry about the time to delete and recreate all paths. You can add two global tables "StraightPaths" and "CurvedPaths" and run this script:&lt;/P&gt;&lt;PRE&gt;Table.query("SELECT Name, Class, Container, StartLocation, EndLocation, PathClass, IsTwoWay, AccumulationType, AGVOrientation FROM Objects() WHERE Class='AGV::StraightPath'").cloneTo(Table("StraightPaths"));
Table.query("SELECT Name, Class, Container, Location, StartAngle,SweepAngle, Radius, PathClass, IsTwoWay, AccumulationType, AGVOrientation FROM Objects() WHERE Class='AGV::CurvedPath'").cloneTo(Table("CurvedPaths"));
Array paths=Table.query("SELECT ARRAY_AGG(Object) FROM Objects() WHERE Class='AGV::StraightPath' OR Class='AGV::CurvedPath'")[1][1];
while (paths.length)
&amp;nbsp; &amp;nbsp; paths.pop().destroy();
Table.query("INSERT INTO Objects() (Name, Class, Container, StartLocation, EndLocation, PathClass, IsTwoWay, AccumulationType, AGVOrientation) &amp;nbsp;SELECT Name, Class, Container, StartLocation, EndLocation, PathClass, IsTwoWay, AccumulationType, AGVOrientation &amp;nbsp;FROM StraightPaths");
Table.query("INSERT INTO Objects() (Name, Class, Container, Location, StartAngle,SweepAngle, Radius, PathClass, IsTwoWay, AccumulationType, AGVOrientation) SELECT Name, Class, Container, Location, StartAngle,SweepAngle, Radius, PathClass, IsTwoWay, AccumulationType, AGVOrientation FROM CurvedPaths");&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Sep 2023 12:16:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579460#M77851</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-09-27T12:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: intersection problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579461#M77852</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P id="isPasted"&gt;Thank you for answering.&lt;/P&gt;&lt;P&gt;By the way, when I ran the script, the value was added to the global table, but the actual path value did not change, so the intersection was not displayed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Sep 2023 01:57:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579461#M77852</guid>
      <dc:creator>tsuji_ryusuke</dc:creator>
      <dc:date>2023-09-28T01:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: intersection problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579462#M77853</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;The paths are reproduced exactly - so what do you mean by path value not changing?  If the originals has the wrong z value - so will the recreated/new paths.&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Sep 2023 10:32:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579462#M77853</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-09-28T10:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: intersection problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579463#M77854</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I thought that running this script would fix the incorrect z value (become z = 0), but am I wrong?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Sep 2023 12:10:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579463#M77854</guid>
      <dc:creator>tsuji_ryusuke</dc:creator>
      <dc:date>2023-09-28T12:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: intersection problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579464#M77855</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In your question you mentioned that it was a lot of work to recreate all the paths, so I posted this script to show that it's really very quick. &lt;/P&gt;&lt;P&gt;It's not intended to fix the problem but could if, once you have the tables, you change the z part of the locations to zero before the insert statements. That &lt;EM&gt;can&lt;/EM&gt; be done altering the table values between reading them and reinserting them into Objects() but you could also do the same thing in FlexScript to alter the path properties. Both are good exercises if you're not familiar with either.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Sep 2023 12:33:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579464#M77855</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-09-28T12:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: intersection problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579465#M77856</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P id="isPasted"&gt;I understand how to use scripts.&lt;/P&gt;&lt;P&gt;Thank you for the information.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Sep 2023 01:24:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/intersection-problem/m-p/13579465#M77856</guid>
      <dc:creator>tsuji_ryusuke</dc:creator>
      <dc:date>2023-09-29T01:24:08Z</dc:date>
    </item>
  </channel>
</rss>

