<?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 to open a .fsl fine on C++? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-open-a-fsl-fine-on-c/m-p/13592666#M88213</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43715/gilles.html" nodeid="43715"&gt;@Gilles &lt;/A&gt;, was Logan Gold'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>Mon, 17 Jun 2024 15:59:50 GMT</pubDate>
    <dc:creator>Jeanette_Fullmer</dc:creator>
    <dc:date>2024-06-17T15:59:50Z</dc:date>
    <item>
      <title>How to open a .fsl fine on C++?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-open-a-fsl-fine-on-c/m-p/13592664#M88211</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.2.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello, &lt;/P&gt;
 &lt;P&gt;I have am building a C++ code. in that code, I need some outputs from a flexsim model. the C++ model needs to pass some parameters to flexsim model and flexsim model needs to provide some outputs back to the c++ code. this process will repeat multiple time in on run of the C++ code. this the approach I am taking:&lt;/P&gt;
 &lt;P&gt;1. from C++ code, create csv file containing parameter value&lt;/P&gt;
 &lt;P&gt;2. open the model from C++ code&lt;/P&gt;
 &lt;P&gt;3. once the model is opened, it should should read the csv file and trigger the run&lt;/P&gt;
 &lt;P&gt;4. at the end of the simulation, flexsim create and output file for c++&lt;/P&gt;
 &lt;P&gt;5. c++ read the outfile and run some additional code and create new parameter for flexsim&lt;/P&gt;
 &lt;P&gt;6. go back to step 1&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;here is my concern:&lt;/P&gt;
 &lt;P&gt;how to do step 2? how can I open a flexsim model in c++?&lt;/P&gt;
 &lt;P&gt;in addition, how to make sure that C++ wait results of simulation before continuing to the next execution?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jun 2024 23:10:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-open-a-fsl-fine-on-c/m-p/13592664#M88211</guid>
      <dc:creator>gguedia5QZFN</dc:creator>
      <dc:date>2024-06-06T23:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a .fsl fine on C++?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-open-a-fsl-fine-on-c/m-p/13592665#M88212</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43715/gilles.html" nodeid="43715"&gt;@Gilles&lt;/A&gt;, you should be able to use C++ to run Windows Command Prompt commands.  Here is a post that goes over what Command Prompt commands you can use to open FlexSim and run a model:&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/questions/21116/automatically-configure-and-run-a-flexsim-model.html"&gt;https://answers.flexsim.com/questions/21116/automatically-configure-and-run-a-flexsim-model.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You'll need to figure out how to run Command Prompt commands with however you're implementing your C++ code.  Since that is a C++ question, we won't be able to help you with those specifics.&lt;/P&gt;&lt;P&gt;There may be a way to determine from within your C++ application when an application closes when it's opened with Command Prompt commands, but again, that is a C++ question that we won't be able to help you with.&lt;/P&gt;&lt;P&gt;You can create a file from within FlexSim by using the fileopen() and fileclose() commands.  From within FlexSim, if you go through the Help menu and choose Command Help, you can search for those commands to see how they can be used.  You could also try something like exporttable() to export data from a table to a CSV file.  Once you have the file created/modified, you should be able to detect when those files are changed with your C++ code.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Jun 2024 00:15:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-open-a-fsl-fine-on-c/m-p/13592665#M88212</guid>
      <dc:creator>logan_gold</dc:creator>
      <dc:date>2024-06-12T00:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a .fsl fine on C++?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-open-a-fsl-fine-on-c/m-p/13592666#M88213</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43715/gilles.html" nodeid="43715"&gt;@Gilles &lt;/A&gt;, was Logan Gold'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>Mon, 17 Jun 2024 15:59:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-open-a-fsl-fine-on-c/m-p/13592666#M88213</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-06-17T15:59:50Z</dc:date>
    </item>
  </channel>
</rss>

