loadcurrentproject()

Function that loads the current project into the global variable currentProject.

If there is no current project when the library loads, the variable currentProject is not altered. You can initialize this variable at any time by calling this function. When you open a project using the function openproject() or openprojectdialog(), those functions also load the global variable currentProject.

Note that many functions in the library use the variable currentProject to check whether a project is opened. You must therefore always open a project using the function openproject() or openprojectdialog().

The function loadcurrentproject() is located in the file project.jsxinc.

Usage

loadcurrentproject();

Parameters

Parameter Data type Required Description
showerror Boolean   If set to false the script will not show an error message when no project can be loaded. Default is true. This parameter is only used to disable the warning when the library loads and checks for an available project.

Return values

This function has no return values.