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 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, 604 views)
The Following 5 Users Say Thank You to Marco Baccalaro For This Useful Post:
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, 506 views)
The Following 5 Users Say Thank You to Marco Baccalaro For This Useful Post:
Steven Hamoen (02-03-2016)

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


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.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.