pytha.open_pyo - pytha-3d-cad/pytha-lua-api GitHub Wiki
Opens a .pyo file as a new project.
Similar to the File-> Open function in the PYTHA user interface.
pytha.import_pyo(file)
| Parameter | Type | Description |
|---|---|---|
file |
file_handle |
A handle to a .pyo file |
The file handle has to be retreived via select_pyo.
Return value
| Type | Description |
|---|---|
{element_handle, ...} |
A table containing the element handles of the newly imported parts |
Remarks
This function will open a project including all of its presets, such as plot sheets and pen and layer settings, discarding the current project. In contrast, import_pyo will import a file into the current project, but will not overwrite the presets.