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 11-20-2009
Tom David's Avatar
Tom David Tom David is offline
Flexsim User
 
Join Date: Aug 2007
Location: Schwaebisch Gmuend, Germany
Posts: 430
Downloads: 157
Uploads: 47
Thanks: 486
Thanked 450 Times in 233 Posts
Rep Power: 520
Tom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant future
Default eventget(1,4) - how to get the string?

Does anyone know how I can transform the return value of eventget(1,4) into the string, which was passed at the command createvent() ?
I found the commands eventdata() but I did not get it working.

I tried in the Script Window different things like:

eventget(1,4)
which just returns a value.

eventdata(eventget(1,4))
which returns 0.

How can I get the string (e.g. createpart)?

What I am trying to do is to make my own profileevents() user command, which is working beside this string.

One other question:
If there is a delayed message in the events (eventcode 19) the structure of the parameters is different.
How can I get the data (msgparam 1, etc.)?
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."
  #2  
Old 11-20-2009
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

Tom I think we lost this function moving from version3 to 4 - the other eventget options work okay - it's just the one for finding data that is broken.


Thread Thread Starter Forum Replies Last Post
String as label of a flowitem Matthias Hofmann Q&A 2 09-18-2008 11:15 AM
IF with a String Gavin Douglas Q&A 1 07-14-2008 12:36 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.