I don't think we have any scripting examples, but it should be
possible to do what you want.
Just click 'Script' and then 'Script Window...'. Once the small
script window opens below the main window, click 'Record' and then
play around.
As you change variables or manipulate the model, the corresponding
script command will be written to the screen. You can save and
playback a script as you want.
Scripts can be saved as a plain text file -- and they can be played
back from the command prompt. While it is generally easiest to
parse/modify the *.vsp file directly, some users have found scripting
to be a good way to automate design studies.
Some features (structures modeling I believe) are not supported by the
scripting support. Trying what you want to do with the 'record'
button on is the best way to check what is supported.
Rob
Yes, you can run VSP in batch mode from the command prompt.
vsp -help
Will print out some documentation describing the various options for
processing a *.vsp file from the command prompt. Depending on what
you're trying to do, there are many ways to go. Please try it out and
if you can't figure out what you want to do, ask a specific question.
For example...
vsp -batch airplane.vsp -cfdmesh 1.0 -tri
For design studies, you will generally need to parse/modify the *.vsp
file yourself - and then run vsp from the command prompt to generate
the file you want. We don't provide any means to modify the geometry
from the prompt.
Scripting can be useful for automating design studies. Some people
find it easier to parse/modify a plain text script than the *.vsp
file. You can also run a script from the command prompt
vsp -script script.scr
Finally, if you are a ModelCenter user, there is a plugin to use VSP
in ModelCenter directly. Phoenix Integration is in the process of
updating the plugin to OpenVSP 2.0, but I expect them to make a
general release very soon.
Hope this helps,
Rob