<?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: How I can conect a python file with a flexsim model in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601631#M95206</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Here's an example of how to call your Python module from a process flow via a user command and have the returned array added to the token as a label.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/78529-mincostflow.zip" target="_blank"&gt;minCostFlow.zip&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 30 Jan 2024 09:01:38 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2024-01-30T09:01:38Z</dc:date>
    <item>
      <title>How I can conect a python file with a flexsim model</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601625#M95200</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Good night,&lt;/P&gt;
 &lt;P&gt;I have a problem with a FlexSim model. I want to connect a process flow with a Python file, where I have a solution for a linear optimization problem. I tried like you have in the next image, but I couldn´t get an answer.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1706571743344.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1522111iA77B245AE2D07C01/image-size/large?v=v2&amp;amp;px=999" role="button" title="1706571743344.png" alt="1706571743344.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;In this picture, the first line is the file´s name, and the second one is the function´s name.&lt;/P&gt;
 &lt;P&gt;Can anyone help me, please?&lt;/P&gt;
 &lt;P&gt;Regards.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jan 2024 23:45:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601625#M95200</guid>
      <dc:creator>diego_rt</dc:creator>
      <dc:date>2024-01-29T23:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: How I can conect a python file with a flexsim model</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601626#M95201</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Is it in the same folder as the model?  Have you set the global preferences to the correct python version? Have you toggled the code as external? Have you put it in a user command?  Is your custom code calling a user command?  Which activity is calling it?   Can you attach your files and model?&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Jan 2024 00:06:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601626#M95201</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-01-30T00:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: How I can conect a python file with a flexsim model</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601627#M95202</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;I can insert just the Python file. The Flexsim model is too large to send. In addition, I put both files in the same folder, and I selected a Python script in the FlexSim process flow.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;If you believe you can help, please text me at my email address, &lt;A href="mailto:dramatoja@gmail.com"&gt;dramatoja@gmail.com&lt;/A&gt;, so I can send you the FlexSim file. Here is the Python script:&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/78524-mincostflow.py" target="_blank"&gt;MinCostFlow.py&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;I am very grateful for every help you can offer me; it is something important to me.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thank you.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Jan 2024 00:24:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601627#M95202</guid>
      <dc:creator>diego_rt</dc:creator>
      <dc:date>2024-01-30T00:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: How I can conect a python file with a flexsim model</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601628#M95203</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Here is more information about how I made my connection and why I do not consider this option a mistake.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;span class="lia-inline-image-display-wrapper" image-alt="1706574870805.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1522107iE7D225C03A98F725/image-size/large?v=v2&amp;amp;px=999" role="button" title="1706574870805.png" alt="1706574870805.png" /&gt;&lt;/span&gt;
 &lt;P&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Jan 2024 00:35:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601628#M95203</guid>
      <dc:creator>diego_rt</dc:creator>
      <dc:date>2024-01-30T00:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: How I can conect a python file with a flexsim model</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601629#M95204</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;You can't put flexscript into an external code function like that - you should from your custom code call a user command with parameters to pass to the python function.  &lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Jan 2024 00:58:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601629#M95204</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-01-30T00:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: How I can conect a python file with a flexsim model</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601630#M95205</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 I am not sure about how I should do it because I think I did it in the Python file attached before, if I understood well.
&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Jan 2024 01:08:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601630#M95205</guid>
      <dc:creator>diego_rt</dc:creator>
      <dc:date>2024-01-30T01:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: How I can conect a python file with a flexsim model</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601631#M95206</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Here's an example of how to call your Python module from a process flow via a user command and have the returned array added to the token as a label.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/78529-mincostflow.zip" target="_blank"&gt;minCostFlow.zip&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Jan 2024 09:01:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601631#M95206</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-01-30T09:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: How I can conect a python file with a flexsim model</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601632#M95207</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you for your help! It was very useful.
&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Jan 2024 12:18:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-conect-a-python-file-with-a-flexsim-model/m-p/13601632#M95207</guid>
      <dc:creator>diego_rt</dc:creator>
      <dc:date>2024-01-30T12:18:09Z</dc:date>
    </item>
  </channel>
</rss>

