PDA

View Full Version : Creating fsm-Files


Ralfi
10-11-2007, 12:24 AM
Hello.

Is there a possibility to create models automatically with something like a script? Or alternatively to create fsm-Files without FlexSim?
Thanks
Ralf Sprenger

Cliff King
10-11-2007, 12:44 AM
Creating models automatically is easy:

1. Gather and format raw data into database tables.
2. Import formated tables into Global Tables
3. Execute custom flexscript to createinstances of the classes
4. Execute script to make connections, populate variable, set locations and set rotations objects
5. Execute script to run the model and record the data.

Writing the script to create objects, move them around, rotate them, assign attributes and variables to them, make proper connection between them, and even run the model. Keep in mind that Flexsim allows you to execute commands dynamically that will do anything that a person operating a mouse and keyboard can do.

Cliff King
10-11-2007, 09:59 PM
Regarding the generation of a model file, are you aware that you can save/open fsm files in XML as well as the default binary format? There are options in the main File menu of Flexsim for saving/opening XML files. Once you familarize yourself with the XML format for Flexsim model files, you could theoretically generate your own model files with an external software program as you suggested.

Ralfi
10-14-2007, 11:55 PM
Thanks, it wotrks :)

Cliff King
10-16-2007, 06:07 PM
That's awesome! Can you share with the community what it is you are up to? Sounds interesting...