SetActiveProjectByPath

Specifies the name of the project that should become active in the desktop. Returns that project. If a user has two projects open with the same name, the result of SetActiveProject is ambiguous (the first one listed in selected). This command permits unambiguous specification of the active project.

UI Access N/A
Parameters
Name Type Description
<ProjectName> String The full path name of the project already in the Desktop that is to be activated.
Return Value Object, the project that is activated.

 

Python Syntax SetActiveProjectByPath(<ProjectName>)
Python Example

oProject = oDesktop.SetActiveProjectByPath("c:\Projects\MyProject.aedt")