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 > User Development
Downloads

User Development User developed add-ons to Flexsim

  #1  
Old 04-23-2010
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default 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  
Old 04-26-2010
Vincent Bechard Vincent Bechard is offline
Consulting in Simulation
 
Join Date: Oct 2008
Location: Montréal (Canada)
Posts: 28
Downloads: 0
Uploads: 0
Thanks: 4
Thanked 41 Times in 13 Posts
Rep Power: 165
Vincent Bechard will become famous soon enoughVincent Bechard will become famous soon enough
Default ... 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/
  #3  
Old 04-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

ModelLibraries was also supported in 4.52 - I'm not sure it was ever listed under new features.
  #4  
Old 04-26-2010
Vincent Bechard Vincent Bechard is offline
Consulting in Simulation
 
Join Date: Oct 2008
Location: Montréal (Canada)
Posts: 28
Downloads: 0
Uploads: 0
Thanks: 4
Thanked 41 Times in 13 Posts
Rep Power: 165
Vincent Bechard will become famous soon enoughVincent Bechard will become famous soon enough
Default

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  
Old 04-26-2010
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

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  
Old 04-27-2010
mark.gormley mark.gormley is offline
Flexsim User
 
Join Date: Oct 2008
Posts: 58
Downloads: 12
Uploads: 0
Thanks: 32
Thanked 63 Times in 29 Posts
Rep Power: 181
mark.gormley has a spectacular aura aboutmark.gormley has a spectacular aura about
Default

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  
Old 12-12-2011
Luciano Luciano is offline
Flexsim Distributor Italy
 
Join Date: Oct 2007
Location: Cuneo (IT)
Posts: 22
Downloads: 66
Uploads: 0
Thanks: 31
Thanked 27 Times in 9 Posts
Rep Power: 170
Luciano will become famous soon enough
Default

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


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.