GUI API

143 views
Skip to first unread message

Volodymyr Melchuck

unread,
Mar 22, 2024, 10:52:48 AM3/22/24
to OpenVSP
Dear VSP community,

I wanted to open VSP GUI with a python API.
I launched the following example script, but no GUI appears.

from openvsp import*

InitGUI()
StartGUI()
The script executes, there are also no errors. 
Other API commands execute fine.
Platform: windows11
VSP version: 3.37.1

Am I doing something wrong?
Thank you for your time,
Volodymyr

Rob McDonald

unread,
Mar 22, 2024, 12:22:31 PM3/22/24
to OpenVSP
There is some documentation on how to get at the GUI through the API here.

Short version...

import openvsp_config
openvsp_config.LOAD_GRAPHICS = True
openvsp_config.LOAD_FACADE = True
import openvsp as vsp

vsp.InitGUI()
vsp.StartGUI()

Rob

Volodymyr Melchuck

unread,
Mar 25, 2024, 11:11:44 AM3/25/24
to OpenVSP
It works now, thank you!
Reply all
Reply to author
Forward
0 new messages