pyfemtet.dispatch_extensions package
Module contents
- pyfemtet.dispatch_extensions.dispatch_femtet(timeout=120, subprocess_log_prefix='')[source]
Connect to existing Femtet process.
The wrapper for Dispatch() but returns PID with IFemtet.
- Parameters:
- Raises:
FemtetConnectionTimeoutError – Couldn’t connect Femtet process for some reason (i.e. Femtet.exe is not launched).
- Returns:
An object for controlling Femtet and the PID of the Femtet being controlled.
- Return type:
- pyfemtet.dispatch_extensions.launch_and_dispatch_femtet(timeout=120, strictly_pid_specify=True)[source]
Launch Femtet by new process and connect to it.
The wrapper for Dispatch() but returns PID with IFemtet.
- Parameters:
- Raises:
FemtetConnectionTimeoutError – Couldn’t connect Femtet process for some reason (i.e. Femtet.exe is not launched).
- Returns:
An object for controlling Femtet and the PID of the Femtet being controlled.
- Return type: