<?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: Problems in creating conveyor belts using code in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/problems-in-creating-conveyor-belts-using-code/m-p/13574124#M73715</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43110/lancewu.html" nodeid="43110"&gt;@lancewu&lt;/A&gt;, was Kavika F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 13 Mar 2024 16:34:47 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2024-03-13T16:34:47Z</dc:date>
    <item>
      <title>Problems in creating conveyor belts using code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problems-in-creating-conveyor-belts-using-code/m-p/13574122#M73713</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.1.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;When I am using dllmaker VS2013, I use createinstance (node ("Main:/project/library/concert/StraightConvenor"), model());&lt;/P&gt;
 &lt;P&gt;Create a conveyor belt and set its size, it will display the following situation.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="屏幕截图-2024-03-04-160206.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1522691i016D01177436FB23/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图-2024-03-04-160206.png" alt="屏幕截图-2024-03-04-160206.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Although its size is the same as what I set, the item will get stuck here. When I try to click on this conveyor, its ExitTransfer1 will go somewhere else, perhaps this is the reason for its blockage.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="屏幕截图-2024-03-04-160213.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1522693i5D0375489C0895C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图-2024-03-04-160213.png" alt="屏幕截图-2024-03-04-160213.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="屏幕截图-2024-03-04-160221.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1522694iE52ACFBB8BBD1F3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图-2024-03-04-160221.png" alt="屏幕截图-2024-03-04-160221.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;I can manually drag and drop this conveyor belt, and ExitTransfer1 will return to where it should be. Is there a code way to achieve this effect?&lt;/P&gt;
 &lt;P&gt;I tried "restmodel()" but it didn't work.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Mar 2024 08:09:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problems-in-creating-conveyor-belts-using-code/m-p/13574122#M73713</guid>
      <dc:creator>lancewu</dc:creator>
      <dc:date>2024-03-04T08:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in creating conveyor belts using code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problems-in-creating-conveyor-belts-using-code/m-p/13574123#M73714</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hey &lt;A rel="user" href="https://answers.flexsim.com/users/43110/lancewu.html" nodeid="43110"&gt;@lancewu&lt;/A&gt;, it seems that the conveyor exit transfer isn't updating it's location correctly when you programmatically set the conveyor size and do contextdragconnection() to make an exit transfer. A solution could be to call this function after setting conveyor size and making an exit transfer:&lt;/P&gt;&lt;PRE&gt;Conveyor conv = createinstance(node("MAIN:/project/library/conveyor/StraightConveyor"), model());
Object exitTransfer = function_s(conv, "addExitTransfer");
...  // set conveyor properties, do contextdragconnection()
int convLength = conv.getProperty("HorizontalLength");
function_s(exitTransfer, "setDistAlongConveyor", convLength);&lt;/PRE&gt;&lt;P&gt;This will move the exitTransfer to the end of the conveyor. Visually, it may look like it's in the wrong place (until you click on it or the conveyor it's on), but with regards to functionality, it works properly.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/80001-create-conveyor-1.fsm" target="_blank"&gt;create-conveyor_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Mar 2024 18:27:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problems-in-creating-conveyor-belts-using-code/m-p/13574123#M73714</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2024-03-06T18:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in creating conveyor belts using code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problems-in-creating-conveyor-belts-using-code/m-p/13574124#M73715</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43110/lancewu.html" nodeid="43110"&gt;@lancewu&lt;/A&gt;, was Kavika F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Mar 2024 16:34:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problems-in-creating-conveyor-belts-using-code/m-p/13574124#M73715</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-03-13T16:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in creating conveyor belts using code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problems-in-creating-conveyor-belts-using-code/m-p/13574125#M73716</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 thank u！it work！！
&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Mar 2024 05:41:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problems-in-creating-conveyor-belts-using-code/m-p/13574125#M73716</guid>
      <dc:creator>lancewu</dc:creator>
      <dc:date>2024-03-21T05:41:21Z</dc:date>
    </item>
  </channel>
</rss>

