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
|
||||
|
||||
Custom Console
Here is a user library that adds a Custom Console gui and several hidden user commands that allow you to print to that console.
The commands it adds are cpt(), cpr(), cpf(), and cpd(). The console can be opened by dragging it from the library to the model. You can also drag the "Assign as Control GUI" icon from the library to the model to assign the custom console as the Model Control GUI for easy access from the toolbar. This user library also shows off the ModelLibraries feature that allows you to have global variables and user commands that are not visible to the user. Last edited by Phil BoBo; 11-19-2014 at 05:46 PM. |
The Following 7 Users Say Thank You to Phil BoBo For This Useful Post: | ||
Tom David (04-27-2010) |
#2
|
|||
|
|||
... and ModelLibraries!!!
Thanks for this useful library. It illustrates very well a new functionnality in Flexsim 5, which was not mentionned in the What's New. I think it should have been writen in bold and underlined font! It is as great as the new flexsxcript handling features!
Flexsim Users: if you used to develop complex libraries, don't miss this amazing feature! You can almost have a template model within a model, all private stuff (variables, commands, triggers) that usual users won't see. Incredible! I like that, I will upgrade my old-style libraries today...
__________________
Vincent Béchard, Eng., MASc. Discrete Event Simulation Designer SNC-Lavalin, Industrial Division ca.linkedin.com/in/vincentbechard/ |
#4
|
|||
|
|||
What???? I spent the last year on developping several libraries. I've never seen anything related to that feature in the documentation... Anyways, I have wings today, so many exciting clean ups to do!
__________________
Vincent Béchard, Eng., MASc. Discrete Event Simulation Designer SNC-Lavalin, Industrial Division ca.linkedin.com/in/vincentbechard/ |
#5
|
||||
|
||||
It wasn't documented in 4.52. It is now. It is in the manual under Miscellaneous Concepts > Creating Custom Libraries.
|
The Following 3 Users Say Thank You to Phil BoBo For This Useful Post: | ||
Lars-Olof Leven (04-26-2010) |
#6
|
|||
|
|||
Thanks for this Phil, very useful.
Just a quick addition, it may be worth adding 1 more command, something like cClear(); to clear the custom console of all text, which would just be: /**Clear Custom Console*/ if(CustomConsole) { setviewtext(CustomConsole,""); } Thanks! Mark |
The Following User Says Thank You to mark.gormley For This Useful Post: | ||
Tom David (04-27-2010) |
#7
|
|||
|
|||
Thaks for the lib Phil, very useful.
One question: the cpt() implementatation use the setviewtext() and getviewtext() to add a line to the custom console. When the console contains a lot of info this is a heavy method to add a line. There is another way to add a line to the custom console view? The flexsim pt() command use the same commands? Thanks! Luciano. |
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Block Assignments | Jamie Santa Ana | Container Terminal (CT) Library | 3 | 02-18-2010 08:58 AM |
Setting Custom State | Francois Perron | Q&A | 1 | 04-06-2009 02:37 AM |
Can I write to the system console? | Steven Hamoen | Q&A | 2 | 11-26-2008 06:37 AM |
Print information into output console (Debugging) | Tom David | Q&A | 11 | 09-04-2008 03:46 AM |
New custom commands in Downloads link | Cliff King | Q&A | 0 | 09-24-2007 05:46 PM |