Eplan Platform API
Eplan.EplApi.DataModel Namespace / ProjectManager Class / GetProject Method
Full link file name "C:\\Eplan\\P8\\Projects\\EPLAN_Sample_Project.elk"

GetProject Method (ProjectManager)
Gets an already open project.
Syntax
public Project GetProject( 
   string linkFileName
)

Parameters

linkFileName
Full link file name "C:\\Eplan\\P8\\Projects\\EPLAN_Sample_Project.elk"

Return Value

Project : project object or null
Exceptions
ExceptionDescription
Thrown if the source project does not exist
Thrown when linkFileName is null.
Thrown when LockProjectByDefault is true and a project cannot be locked.
Remarks
if the project is not already open, this method returns null This method works with a project and embedded libraries: project settings, symbol libraries and the function libraries.
See Also