ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
question on sub-model
Hi,
I'm making a model of a multi-floors factory, since each of the floor has their own processes, I would like to build each floor one by one and put in a visual tool as container, and each of them save as an independent model and add each floor to a user library. Finally make the main model by using the object in the library. Here I have a question: If I have some updates in the sub-model, how can I directly update the main model? |
#2
|
||||
|
||||
I have used submodel in my projects. What I did is to make a template submodel, then copy and paste to make other ones. I did not use libarary unless I want to repeatly use it in other object. If you save you submodel as a library object and drag one into your model, later when you did some change in you library object, it won't affact the objects which already are dragged into your model. If you want to update those objects, you have to delete and re-drag them again.
I guess what you want is a way to share a code between sub-models, so that when you chang the template, it will affact others. You may use a user command to achieve that. Write you code into a user command, and in the trigger functions, just call that user command. Latter when you change the user command, it will affact all objects using that user command. Hope this is a bit helpful.
__________________
Best, Alan |
#3
|
||||
|
||||
Hi Kelvin,
I put a select group command in the download area. With this command you can select a group of objects by the name, also inside a visualtool. So I had many similar submodells in visual tools.(Mabe that different in your case) I changed one, selected the object in the submodell and then copied the changes from the one submodell I changed. So updating your modell would be something like this. Put your changes submodell in the library. Open the main modell, drag the changed submodell in and select the object which need updating. Then copy the changes from the submodell and delete the submodell.
__________________
kind regards Nico. |
Thread | Thread Starter | Forum | Replies | Last Post |
a question on queue | KelvinHo | Q&A | 15 | 11-09-2011 07:16 AM |
A question about request transport in a rack object | AlanZhang | Q&A | 9 | 08-15-2007 02:45 PM |