Run a PythonPart from command line
A PythonPart can be started and executed from the ALLPLAN command line as follows:
The script must be defined by -o "@xxx"
where xxx is the full path and name of the pyp file. After the script additional parameter for the execution of the PythonPart can be added.
A PythonPart can be used for manual startup or automatic startup from the command line. The type of execution can be checked within the py file as follows:
The additional parameters from the command line can be taken like
if len(sys.argv) > 1:
settings_file = sys.argv[1]
settings_path = os.path.dirname(sys.argv[1]) + "\\"
By calling
ALLPLAN will be closed.
Placeholder