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
|
|||
|
|||
Problem with OnModelOpen trigger
Hello
I have implemented this model in which a dispatcher is connected (contextdragconnection) to different types of objects by the OnModelOpen trigger. All types of objects are connected correctly except the BasicTE that throws this exception: exception: Exception Caught in BasicTE:: getclasstype () object: / BasicTE2 exception: Exception Caught in ClassType (fsnode * Involved) Does anyone know why this happens and how can I solve it? Thank you. |
#3
|
|||
|
|||
The problem doesn't happen if you open the model through flexsim with "file->open model". But if you open the file by double click the problem happens.
Thanks. |
#4
|
||||
|
||||
It is a timing issue of when some functions are being called. If you put this code at the top of your OnModelOpen trigger, then the errors will go away:
applicationcommand("registereventtypes"); applicationcommand("registereventlisttypes"); I've added this to the development list to fix for a future version. |
The Following 4 Users Say Thank You to Phil BoBo For This Useful Post: | ||
Sebastian Hemmann (09-21-2010) |
Thread | Thread Starter | Forum | Replies | Last Post |
Question on OnMessage Trigger | KelvinHo | Q&A | 2 | 01-26-2010 02:41 AM |
Is there a time dependent trigger? | Matthias Hofmann | Q&A | 3 | 08-25-2008 05:50 AM |
On Message Trigger | Anthony Timmiss | Q&A | 19 | 08-13-2008 08:20 AM |
return 1 in entry trigger? | qin tian | Q&A | 1 | 05-07-2008 04:05 PM |
Entry trigger | mallik | Q&A | 4 | 01-25-2008 07:18 AM |