ATTENTION

This 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

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 01-27-2008
KelvinHo KelvinHo is offline
Flexsim User
 
Join Date: Jan 2008
Location: Hong Kong
Posts: 129
Downloads: 18
Uploads: 1
Thanks: 44
Thanked 23 Times in 7 Posts
Rep Power: 171
KelvinHo will become famous soon enough
Default 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  
Old 01-28-2008
AlanZhang's Avatar
AlanZhang AlanZhang is offline
Flexsim Super Moderator
 
Join Date: Aug 2007
Location: CA
Posts: 289
Downloads: 64
Uploads: 0
Thanks: 88
Thanked 91 Times in 47 Posts
Rep Power: 225
AlanZhang is a jewel in the roughAlanZhang is a jewel in the roughAlanZhang is a jewel in the rough
Default

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  
Old 01-28-2008
Nico Zahn's Avatar
Nico Zahn Nico Zahn is offline
Flexsim User
 
Join Date: Sep 2007
Location: Bingen am Rhein, Germany
Posts: 179
Downloads: 19
Uploads: 4
Thanks: 66
Thanked 60 Times in 32 Posts
Rep Power: 201
Nico Zahn has a spectacular aura aboutNico Zahn has a spectacular aura about
Default

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


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.