API Help
Eplan.EplApi.DataModel Namespace / ProjectManager Class / CurrentProject Property

In This Topic
    CurrentProject Property
    In This Topic
    ProjectManager's property which returns first project from the list of opened projects. Please use Eplan::EplApi::HeServices::SelectionSet class in order to get the selected project, or other selected objects.
    Syntax
    public Project CurrentProject {get;}
    public:
    property Project^ CurrentProject {
       Project^ get();
    }

    Property Value

    First opened Project, or when there are no projects opened null is returned.
    Exceptions
    ExceptionDescription
    Exception is thrown, when current project is not locked and cannot be locked.
    Thrown when LockProjectByDefault is true and a project cannot be locked.
    Thrown when current project is invalid.
    See Also