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
|
||||
|
||||
Flexsim 5 Available
Flexsim 5 is now available from the user login. Thanks to all the distributors and users for helping with the beta testing period.
|
The Following 4 Users Say Thank You to Anthony Johnson For This Useful Post: | ||
Olivier Pellegrin (04-19-2010) |
#2
|
|||
|
|||
Confusion on Variable Declaration in Flexsim 5
Hello,
First of all, congratulate and thank you for the new version. I am excited to explore the new features! By the way, I am not sure this is the right place to report my issue in using the new version. If it is not appropriate to be posted here, please move this post accordingly. When I opened a model built in 4.5 using version 5, it claims many Flexscript Errors, even though the model works perfectly fine in 4.5. An example here is; for(int index=1;index<=5;index++){ pt("index in first loop");pd(index);pr(); } for(index =1;index<5;index++){ pt("index in second loop");pd(index);pr(); } The variable "index" in the second loop shouldnt be declared again in 4.5. However, version 5 asked me to declare again like for(int index=1;index<=5;index++){ pt("index in first loop");pd(index);pr(); } for(int index =1;index<5;index++){ pt("index in second loop");pd(index);pr(); } Is it the way for version 5? Do I have to fix all my logic script in this way? If so, any other different syntax usage documented so that I can learn? Pleas advise me. Thank you. Sung |
#4
|
||||
|
||||
It was a bug that it worked that way in the first place. You should change your logic to work with the correct syntax.
Flexscript is designed around Visual Studio C++ syntax rules. This change brings it into conformity with C++ so that if you toggle a node with Flexscript code as C++, it will give you the same errors in both places. |
The Following 6 Users Say Thank You to Phil BoBo For This Useful Post: | ||
Tom David (04-20-2010) |
#5
|
|||
|
|||
I also have an addition point to add. Port was declared as treenode in previous version, however it is requried to declared it as int now. There will be a lot a changes required. Anyway to do a subroutine to replace this line in all setup?
David
__________________
Advent2 Labs David |
#7
|
||||
|
||||
Using arrow keys to tab between objects with Conveyors
If you are on the Layout page of a conveyor and use the <> buttons to go to the next object, AND that next object is a conveyor, it comes up with both the Editor View and Table View buttons selected and nothing in the display.
Pushing either button shows the correct view, but it does appear to be going to an unknown state. |