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
FAQ Downloads Calendar Search Mark Forums Read

User Development User developed add-ons to Flexsim

Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2015
Marco Baccalaro Marco Baccalaro is offline
Flexsim Distributor
 
Join Date: Nov 2008
Posts: 8
Downloads: 2
Uploads: 1
Thanks: 10
Thanked 47 Times in 7 Posts
Rep Power: 0
Marco Baccalaro has a spectacular aura aboutMarco Baccalaro has a spectacular aura about
Smile User Triggers Module

User Triggers module work on 7.5 version.
This module adds User Triggers tool in the toolbox in order to create functions and triggers that are linked together.
These functions and triggers can be used instead of sending messages and delayed messages and having a big amount of logic written into the On Message Trigger.
In can be used to:
  • give better order to code specially in complex objects where On Message trigger have most of the logic by having separated triggers
  • make code more readable by giving a name to the functions instead of calling onmessage and ondelayedmesage functions and helping development by suggesting parameters in those functions
  • give up to 8 parameters to these functions of any type instead of the 3 numerical of onmessage and ondelayedmesage functions

How to install it:
put the "User Triggers Module" folder into the Flexsim "modules" folder
run Flexsim

This module adds:
  • User Triggers tool under Modeling Logic in Toolbox
  • The User Triggers tab in any standard library object

How to use it:
  • By the toolbox add, by Modeling logic, a User Trigger
  • Give a name to the function (eg. newfunction), to the trigger (eg. OnNewFunction) and the parameters choosing for everyone the type and marking if it is optional
  • Open an object properties, under User Triggers tab, add the trigger choosing it by the list
  • Edit its code (parameters are suggested on the code header).
  • Call the function anywhere choosing if to delay it or not, in this case use -1 as delay parameter or NO_DELAY macro
Attached Files
File Type: zip User Triggers.zip (585.4 KB, 580 views)
Reply With Quote
The Following 5 Users Say Thank You to Marco Baccalaro For This Useful Post:
Anna Lisa Dierking (10-19-2015), Jing Chen (10-12-2015), Lucie Lerivrey (10-13-2015), mgiubilato (10-26-2015), Zhao Feng Zhang (11-26-2015)
  #2  
Old 02-02-2016
Marco Baccalaro Marco Baccalaro is offline
Flexsim Distributor
 
Join Date: Nov 2008
Posts: 8
Downloads: 2
Uploads: 1
Thanks: 10
Thanked 47 Times in 7 Posts
Rep Power: 0
Marco Baccalaro has a spectacular aura aboutMarco Baccalaro has a spectacular aura about
Default 7.74 Flexcon Triggers Module

Here's the 7.74 version of the module
Attached Files
File Type: zip Flexcon Triggers.zip (13.1 KB, 484 views)
Reply With Quote
The Following 5 Users Say Thank You to Marco Baccalaro For This Useful Post:
Anna Lisa Dierking (02-08-2016), arunkrmahadeva (02-02-2016), Jing Chen (02-02-2016), RalfGruber (02-02-2016), Steven Hamoen (02-03-2016)
Reply

Tags
baccalaro, flexcon, marco, user triggers, user triggers module

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FlexSim Basics: Picklists and Triggers Markus Cueva FlexSim Media 0 09-04-2013 12:38 PM
Time Table triggers don't work Abdul Mirza Q&A 2 05-08-2013 01:19 PM
Running flypaths from object triggers Ryan Haferbecker Q&A 9 12-02-2011 11:10 AM
Usage of Triggers on Networknodes Sebastian Hemmann Q&A 1 01-16-2010 12:48 PM
Writing Triggers Xavier Jackson Q&A 1 07-18-2008 10:36 AM


All times are GMT -6. The time now is 03:13 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.