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 10-25-2010
Albert Munoz Albert Munoz is offline
Flexsim User
 
Join Date: Sep 2010
Posts: 14
Downloads: 5
Uploads: 0
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 117
Albert Munoz is on a distinguished road
Default 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  
Old 10-26-2010
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

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".
Attached Files
File Type: zip ModelWorkspace.zip (39.7 KB, 146 views)

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)
  #3  
Old 10-26-2010
Albert Munoz Albert Munoz is offline
Flexsim User
 
Join Date: Sep 2010
Posts: 14
Downloads: 5
Uploads: 0
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 117
Albert Munoz is on a distinguished road
Default

Excellent, thank you so much!


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


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.