Export Data
此節介紹幾個在AEDT中用到的Iron python用到的匯出指令,例如將圖匯出或是將檔案打包成csv檔案匯出。由於IronPython的模組使用較這些檔案可以用CPython的模組做後處理來生成報告。
Export Photo
// Export Photo
oEditor.FitAll()
view="Dimetric","Trimetric", "Front", "Top", "Right", "Bottom"
photo_name = oDesign.GetName()
path = 'D://AEDT_file' # 給定路徑 #
for i in view:
oEditor.ExportModelImageToFile("{}\{}_{}.jpg".format(path,photo_name,i), 2400, 1200,
[
"NAME:SaveImageParams",
"ShowAxis:=" , "False",
"ShowGrid:=" , "False",
"ShowRuler:=" , "True",
"ShowRegion:=" , "Default",
"Selections:=" , "",
"FieldPlotSelections:=" , "",
"FitToSelections:=" , "",
"FitToFieldPlotSelections:=", "",
"Orientation:=" , i
])
AddWarningMessage("Export {}_{}.jpg to {}".format(photo_name,i,path))

Export Field Report

Export Report to CSV

Export List to CSV


Last updated