The Vehicle group of functions are high-level commands that pertain to the entire OpenVSP model.
Click here to return to the main page.
More...
◆ ClearVSPModel()
Clear the current OpenVSP model
string fid =
AddGeom(
"FUSELAGE",
"" );
Print(
string(
"--->Resetting VSP model to blank slate\n" ) );
◆ GetVSPFileName()
Get the file name of the current OpenVSP project
string fid =
AddGeom(
"FUSELAGE",
"" );
string fname = "example_fuse.vsp3";
Print(
"\tSaving vehicle file to: ",
false );
- Returns
- File name for the current OpenVSP project
◆ Update()
void Update |
( |
bool |
update_managers = true | ) |
|
Update the entire vehicle and all lower level children. An input, which is true by default, is available to specify if managers should be updated as well. The managers are typically updated by their respective GUI, so must be updated through the API as well to avoid unexpected behavior.
string fid =
AddGeom(
"FUSELAGE",
"" );
- Parameters
-
update_managers | Flag to indicate if managers should be updated |
◆ VSPExit()
void VSPExit |
( |
int |
error_code | ) |
|
Exit the program with a specific error code
- Parameters
-
void SetXSecTanAngles(const string &in xsec_id, int side, double top, double right=- 1.0e12, double bottom=- 1.0e12, double left=- 1.0e12)