WorkingDir

Lorenz
Lorenz Member Posts: 6
Photogenic Name Dropper First Comment
**

Hello

What is the best way to get the WorkingDir?

In documentation I found:
1. straight-forward, but doesn't seem to work:
anWD=ExtAPI.DataModel.AnalysisById(0).WorkingDir
2. Work-around via name:
an1=ExtAPI.DataModel.AnalysisByName(ExtAPI.DataModel.AnalysisNames[0])
anWD=an1.WorkingDir
3. Work-around via children/parents:
solution=ExtAPI.DataModel.GetObjectsByName('Solution')[0]
analysis=solution.Parent
anWD=analysis.WorkingDir

Shouldn't there be a working straight-forward way?

Regards
Lorenz

Answers