import ScriptEnv
ScriptEnv.Initialize("Ansoft.ElectronicsDesktop")
oDesktop.RestoreWindow()
oProject = oDesktop.GetActiveProject()
oDesign = oProject.GetActiveDesign()
oEditor = oDesign.SetActiveEditor("3D Modeler")
oEditor.FitAll()
for i in ['Top', 'Bottom', 'Right', 'Left', 'Front', 'Back', 'Trimetric', 'Dimetric', 'Isometric']:
oEditor.ExportModelImageToFile("d:/demo/{}.png".format(i), 1027, 768,
["NAME:SaveImageParams",
"ShowAxis:=" , "False",
"ShowGrid:=" , "False",
"ShowRuler:=" , "False",
"ShowRegion:=" , "Default",
"Selections:=" , "",
"Orientation:=" , i
])
(圖一) 不同視角的圖片 |
沒有留言:
張貼留言