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
|
|||
|
|||
Trouble with Build All Flexscript
I'm having an issue converting a Flexsim 4.3 library to 4.5.2
The following Fexscript code snippet illustates the issue. If you run it the code after the mainmenucommand("Build|Build All FlexScript") does not execute. Any idea what I've done wrong? mainmenucommand("View|Output Console"); windowmove(systemwindow(1),7,100,768,550,1); pr();pt("Start Test Build ALL"); mainmenucommand("Build|Build All FlexScript"); pr();pt("End Test Build ALL"); |
#2
|
||||
|
||||
I am not sure, but the Main Menu Command is either
Build Flexscript or Make All Code Flexscript I hope this was the problem ...
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions." |
#4
|
||||
|
||||
Tom and Jorg:
mainmenucommand() calls functions that were on Flexsim1's original menu. The menu has changed significantly since then, and the command hasn't been updated accordingly. Only certain things work for that command, and you can usually only find what those are by looking at what the code behind what various Flexsim buttons and menus are doing. Some of them use it; others do not. Bill, Your code is right, but you are probably calling it from a node that is toggled as Flexscript, which rebuilds that node in the build all flexscript call and thus stops execution. If you run it from a script window, it works fine. All, On a side note, for Flexsim 5.0, we've added another command that is more dynamic to make calling the functions on the current menu easier. The syntax is similar, but it uses the current menu rather than an old system. |
The Following 5 Users Say Thank You to Phil BoBo For This Useful Post: | ||
Tom David (11-12-2009) |
Thread | Thread Starter | Forum | Replies | Last Post |
Trouble with mergesort... | Paul Dowling | Q&A | 6 | 02-23-2009 11:20 PM |
about flexscript | Kang Han | Q&A | 2 | 10-03-2008 09:21 AM |
Static Variables in Flexscript? | Joe Allen | Q&A | 7 | 09-18-2008 12:43 PM |
size of arrays in Flexscript | Steven Hamoen | Q&A | 13 | 06-23-2008 01:04 PM |
Clean Flexscript | Steven Hamoen | Q&A | 1 | 04-04-2008 07:00 AM |