dips.DipsApp module#
- class dips.DipsApp.DipsApp(port)#
Bases:
object- static AttachToExisting(port)#
- Close()#
- GetModel() ProjStubRef#
- Hide()#
- static LaunchApp(port, overridePathToExecutable: str = None, timeout: float = 120, headless: bool = False, fileToOpen: str = None)#
- Ping()#
- Show()#
- static startApplication(port: int, overridePathToExecutable: str = None, timeout: float = 120, headless: bool = False, fileToOpen: str = None) None#
Opens the most recently installed RS2 application. Starts the python server and binds it to the given port.
- Parameters:
port (int) – the port to bind the python server to. Use this same port when initializing RS2Modeler
overridePathToExecutable (str, optional) – full path to the desired executable to be opened. If not provided, the latest installation of rs2 is used
timeout (float, optional) – the maximum amount of time to wait for the application and server to start.
- Raises:
ValueError – Port range must be between 49152 and 65535, otherwise ValueError is raised
TimeoutError – if timeout is provided, raises TimeoutError if not able to connect to the server within that time.