OpenAndConvertProject

Opens a legacy project and converts or copies it to .aedt format.

UI Access Click File > Open, and choose a legacy project
Parameters
Name Type Description
<itemPath> String full project path of the legacy project
<legacyChoice> Integer

0: show conversion dialog box, (same as File > Open of a legacy file)

1: rename (changes extension to .aedt, the original file and results are renamed)

2: copy (creates new file with .aedt extension, and the original file and results remain available)

Return Value An object reference to the newly opened project which has the .aedt extension

Warning: If project file/results with the same name and .aedt extension already exist in the same directory, they will be overwritten.

Python Syntax OpenAndConvertProject(filePath, legacyChoice)
Python Example

oProject = oDesktop.OpenAndConvertProject("c:\files\optimtee.hfss", 1)

Note: optimtee.hfss is gone after this code executes

oProject = oDesktop.OpenAndConvertProject("c:\files\optimtee.hfss", 2)

Note: optimtee.hfss remains after this code executes