I need to write some code to change inlet/outlet concentrations of gases in Flow Simulation, and was looking for some working code examples that I could start modifying so that I can learn what the various function calls and arguments do. I am using Windows 7 x64, and have the 64-bit version of Solidworks installed. I have both the 64-bit and 32-bit versions of the Flow API installed (there was a note about needing to do this for VBA to function properly on 64-bit systems). I also installed Visual Studio 2010, and was planning to program in C++ for now.
I tried loading the C++ sample code located in the vcsample folder (in the API sdk 2011 folder). After building the project and running the executable file, I get a dialog box that allows selection of a product, but the correct product is not installed on my machine...the current choices in the program are:
"Srac\\COSMOS_FloWorks 2010"
"NIKA\\FloEFD.V5 9"
"NIKA\\FloEFD.Pro 9"
"NIKA\\FloEFD 9"
I tried renaming the first one to FloWorks 2011, but had no luck - the product isn't found. Three questions I have:
1. Does anyone know what string I need to specify for Flow Simulation 2011?
2. Does anyone have any working code that I can try out/modify while I learn to use the API? It looks like the compiled code for the vcsample went into a 32bit folder, so I am guessing that 32-bit code would work for me.
3. I had hoped that I could simply record a macro, then open and edit the macro to delete anything I didn't need - sadly the macro recorder does not seem to capture any Flow Simulation project changes. Anyone know how to record Flow Sim macros??
Thanks!
- Dan