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 > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 09-20-2010
juan alberto juan alberto is offline
Flexsim User
 
Join Date: May 2009
Location: Valencia, Spain
Posts: 74
Downloads: 14
Uploads: 0
Thanks: 19
Thanked 3 Times in 2 Posts
Rep Power: 138
juan alberto is on a distinguished road
Default 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.
Attached Files
File Type: zip test_onmodelopen.zip (55.0 KB, 160 views)
  #2  
Old 09-20-2010
juan alberto juan alberto is offline
Flexsim User
 
Join Date: May 2009
Location: Valencia, Spain
Posts: 74
Downloads: 14
Uploads: 0
Thanks: 19
Thanked 3 Times in 2 Posts
Rep Power: 138
juan alberto is on a distinguished road
Default

The model is in Flexsim 5
  #3  
Old 09-20-2010
juan alberto juan alberto is offline
Flexsim User
 
Join Date: May 2009
Location: Valencia, Spain
Posts: 74
Downloads: 14
Uploads: 0
Thanks: 19
Thanked 3 Times in 2 Posts
Rep Power: 138
juan alberto is on a distinguished road
Default

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  
Old 09-20-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 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


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.