How can i call an excel in *.xlsx format in spaceclaim which can be used to create geometry?
AmrishKulkarni
Member Posts: 2 **
import clr
clr.AddReference("Ans.UI.Toolkit")
import Ansys.UI.Toolkit
import os
wbdir = os.path.join(analysis.WorkingDir,'..\..\..\..\')
DefaultFolder = wbdir
DefaultFolder = r'D:\temp'
dlg=Ansys.UI.Toolkit.Dialog()
FilePath =Ansys.UI.Toolkit.FileDialog.ShowOpenFilesDialog(dlg,DefaultFolder,'Excel Files(s)|*.xlsx',0,'Select Input Excel File',None)
dlg.Close()
Tagged:
0
Answers
-
You can reference this post. It is regarding Mechanical, but the post is generic to any application with iron python like SC as well.
0