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
|
|||
|
|||
Setting display settings on model opening
Hello,
I was wondering how to set the display settings (window locations, displaying global tables, GUI appearing without the GUI builder window, etc.) for a model when it is opened. Thanks Albert |
#2
|
|||
|
|||
The standard workspace function does not store windows for Global Tables and GUIs as they are model specific. I've included some example code for those in the ModelOpen trigger to open a model control GUI and a Global Table window. I've also created a system to store the standard Flexsim workspace within the model with multiple layouts.
To open a GUI with the model as the view and object focus you use the following syntax: createview(nodetopath(<guinode>),nodetopath(model( )),nodetopath(model)) The model open trigger looks like this: //Default workspace openmodelworkspace(); //GUI tied to model control GUI button applicationcommand("modelcontrolgui"); //Global Table string tablepath=nodetopath(ownerobject(reftable("GlobalTable50"))); createview("VIEW:/pages/GlobalTable Parameters",tablepath,tablepath); I've created two user commands to set and open workspaces that are stored in the model's /Tools/Workspaces folder. Using these you can have multiple workspaces by passing in optional workspace name parameters. The setmodelworkspace and openmodelworkspace functions are quick and dirty implementations and setmodelworkspace will probably overwrite any workspace stored in your preferences file on the hard drive, but not those that are currently loaded into the tree. To preserve the values in the file just open the default workspace again before you exit Flexsim and set it under the File->Global Preferences->Environment-> "Save workspace as default". Last edited by Jason Lightfoot; 10-26-2010 at 01:56 PM. Reason: Trying to improve clarity |
The Following 3 Users Say Thank You to Jason Lightfoot For This Useful Post: | ||
Rachid Kolfin (10-27-2010) |
Thread | Thread Starter | Forum | Replies | Last Post |
Sketchup Pro Export Settings | Joshua Cole | Q&A | 7 | 03-15-2011 10:08 AM |
Flexsim 5 hangs while opening Help/Save/Load windows | Stephan Seidel | Installation | 5 | 06-14-2010 08:18 AM |
Problem in opening and closing ports | claudia gertheinrich | Q&A | 3 | 01-22-2010 02:34 AM |
Setting the side offset for all nodes in the model | Brandon Peterson | Tips and Tricks | 0 | 04-28-2008 11:15 AM |
Opening of FlexSim State Files | Fadhlullah Bin Rahmat | Q&A | 0 | 02-18-2008 04:57 AM |