<?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: Uploading a custom library. in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587593#M84239</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/32135/martink5.html" nodeid="32135"&gt;@Martin K5&lt;/A&gt;, was Jason Lightfoot'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, 13 May 2024 17:20:07 GMT</pubDate>
    <dc:creator>Jeanette_Fullmer</dc:creator>
    <dc:date>2024-05-13T17:20:07Z</dc:date>
    <item>
      <title>Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587590#M84236</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi,&lt;/P&gt;
 &lt;P&gt;I would like to ask regarding the custom library upload. My custom library is dependent on various global variables and global tables that are set in the current model. When uploading this library in a new model, collisions appear (undefined variables). Is there a way to prepare these variables before uploading the custom library but not doing it separately? If I can for example encapsulate this settings script into the custom library that will be triggered before the upload? I know that there is the possibility to do some post settings by a dropscript. In worst case scenerio, I can do it set up the model manually and then upload the library but it devaluates the efficiency of a custom library.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thank you,&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Martin&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 May 2024 13:26:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587590#M84236</guid>
      <dc:creator>martin_k5</dc:creator>
      <dc:date>2024-05-07T13:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587591#M84237</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can add global tables to your user library for automatic install easily since they have the icon for it in their properties: &lt;span class="lia-inline-image-display-wrapper" image-alt="1715093589318.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523812iB07D7C3E9683C8E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1715093589318.png" alt="1715093589318.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The rest you can install using the newmodelinstall folder dropscript on a dummy object. I will try to find an example to upload to make this simpler for you.&lt;/P&gt;&lt;P&gt;In the meantime you might find the documentation on &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/23.0/Reference/DeveloperAdvancedUser/CustomLibraries/CustomLibraries.html" target="_blank"&gt;Custom Libraries &lt;/A&gt;helpful.&lt;/P&gt;&lt;P&gt;Edit:  If you're adding global variables in the dropscript call 'refreshglobalvariables()'   afterwards.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 May 2024 14:52:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587591#M84237</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-05-07T14:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587592#M84238</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Great, thank you for the provided information. I will try to use the dedicated icon for adding global tables in the user library. 
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;As for the example, I would really appreciate it as I have already tried the "newmodelinstall" node (not in the combination with dropscript) and unsuccessfully.&lt;/P&gt;
 &lt;P&gt;Thank you.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 May 2024 15:24:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587592#M84238</guid>
      <dc:creator>martin_k5</dc:creator>
      <dc:date>2024-05-07T15:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587593#M84239</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/32135/martink5.html" nodeid="32135"&gt;@Martin K5&lt;/A&gt;, was Jason Lightfoot'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, 13 May 2024 17:20:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587593#M84239</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-05-13T17:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587594#M84240</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 I was able to use the newmodelinstall node including the Custom object with the dropscript node. At this point I have defined some auto install components (adding global variables) and I have also included the Global Table to auto install as well (using the dedicated icon).
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;When I navigate through File -&amp;gt; New Model, from the existing one, where the user library is loaded, the user library is initially loaded as well but only the Global Table is automatically installed without the global variables.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Am I missing anything?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thank you,&lt;/P&gt;
 &lt;P&gt;Martin&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 May 2024 10:51:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587594#M84240</guid>
      <dc:creator>martin_k5</dc:creator>
      <dc:date>2024-05-15T10:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587595#M84241</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Can you upload the library?  We'll take a look a the paths and dropscript.&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 May 2024 11:32:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587595#M84241</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-05-15T11:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587596#M84242</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Yes, of course. Here is the sample user library.&lt;/P&gt;
 &lt;P&gt;I have managed to do the autoinstall when creating a new model from an existing one, but when I would like to autoinstall the specified components by simply loading the user library (with the "loaduserlibrary" command) in a new model and dragging the dedicated object on the ground, which command should I use from these: &lt;STRONG&gt;startupinstall&lt;/STRONG&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, ;"&gt;, &lt;STRONG&gt;loadinstall&lt;/STRONG&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, ;"&gt;, &lt;STRONG&gt;openmodelinstall&lt;/STRONG&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, ;"&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/82812-testlib.fsl" target="_blank"&gt;testLib.fsl&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 May 2024 12:12:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587596#M84242</guid>
      <dc:creator>martin_k5</dc:creator>
      <dc:date>2024-05-15T12:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587597#M84243</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I tend to put everything in newmodelinstall since that is always called.&lt;/P&gt;&lt;P&gt;After you've scripted your global variable creation,  call refreshglobalvariables();&lt;/P&gt;&lt;P&gt;You can also put your global variable tree somewhere in your library and iterate through the subnodes, copying them into the model global variables - it's easier to set up a large number that way (using the model GUI interface).&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 May 2024 12:25:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587597#M84243</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-05-15T12:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587598#M84244</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks, but when I put everything in newmodelinstall and open an empty model by opening FlexSim and clicking on a New Model button, then I have to load the user library by the dedicated command. However the global variables are not installed even if I add the refreshglobalvariables();&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 May 2024 13:23:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587598#M84244</guid>
      <dc:creator>martin_k5</dc:creator>
      <dc:date>2024-05-15T13:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587599#M84245</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Sorry - maybe openmodelinstall needs to also fire the dropscript.&lt;/P&gt;&lt;P&gt;You can ensure the library is always loaded by listing it for startup install in Global Preferences.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 May 2024 13:30:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587599#M84245</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-05-15T13:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587600#M84246</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 And how can I fire the dropscript by openmodelinstall? 
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Yes, I know that I am able to make the autoload of the library in Global Preferences, but the problem is still the same. I can't import it while not having set the global variables that are used in the User Library.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 May 2024 13:33:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587600#M84246</guid>
      <dc:creator>martin_k5</dc:creator>
      <dc:date>2024-05-15T13:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587601#M84247</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Here's an example that autoinstalls a global table, global variable and macro to a new model or one that your open, or one that is already open when you load the library.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/82823-exampleuserlibinstaller.fsl" target="_blank"&gt;ExampleUserLibInstaller.fsl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It seems you need a duplicate table under openmodelinstall  - the way around this would be to put a custom node GlobalTables into the libstruct node and use the dropscript to refer to any tables under that node instead.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 May 2024 15:05:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587601#M84247</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-05-15T15:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587602#M84248</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Great, thank you for the provided example. Just to clarify, when I l theoad user library by the "loaduserlibrary()" command, no global variables nor global tables are installed. To have them install, I have to click on the little arrow next to the loaded user library and hit the "Install Library's Auto Install Components" button. Is this the proper way?
&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 May 2024 13:30:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587602#M84248</guid>
      <dc:creator>martin_k5</dc:creator>
      <dc:date>2024-05-21T13:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587603#M84249</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can run with the option to autoinstall using the user command:&lt;/P&gt;&lt;PRE&gt;loaduserlibrary(modeldir()+"/exampleuserlibinstaller.fsl",0,0,0,1);&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 May 2024 17:52:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587603#M84249</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-05-24T17:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a custom library.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587604#M84250</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/32135/martink5.html" nodeid="32135"&gt;@Martin K5&lt;/A&gt;, was Jason Lightfoot'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>Fri, 31 May 2024 13:08:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/uploading-a-custom-library/m-p/13587604#M84250</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-05-31T13:08:44Z</dc:date>
    </item>
  </channel>
</rss>

