- 积分
- 820
- 回帖
- 0
- 西莫币
-
- 贡献
-
- 威望
-
- 存款
-
- 阅读权限
- 25
- 最后登录
- 1970-1-1
该用户从未签到
|
楼主 |
发表于 2019-10-17 20:23
|
显示全部楼层
# ----------------------------------------------
# Script Recorded by ANSYS Electronics Desktop Version 2017.1.0
# 9:48:19 十月 17, 2019
# ----------------------------------------------
import ScriptEnv
ScriptEnv.Initialize("Ansoft.ElectronicsDesktop")
oDesktop.RestoreWindow()
oProject = oDesktop.SetActiveProject("Project6")
oDesign = oProject.SetActiveDesign("Maxwell2DDesign1")
oEditor = oDesign.SetActiveEditor("3D Modeler")
oEditor.CreateCircle(
[
"NAME:CircleParameters",
"IsCovered:=" , True,
"XCenter:=" , "0mm",
"YCenter:=" , "0mm",
"ZCenter:=" , "0mm",
"Radius:=" , "1mm",
"WhichAxis:=" , "Z",
"NumSegments:=" , "0"
],
[
"NAME:Attributes",
"Name:=" , "Circle1",
"Flags:=" , "",
"Color:=" , "(143 175 143)",
"Transparency:=" , 0,
"PartCoordinateSystem:=", "Global",
"UDMId:=" , "",
"MaterialValue:=" , "\"vacuum\"",
"SurfaceMaterialValue:=", "\"\"",
"SolveInside:=" , True,
"IsMaterialEditable:=" , True
])
oProject.SaveAs("D:\\2019\\20191017\\Project6.aedt", True)
oDesktop.CloseProject("Project6")
oProject = oDesktop.NewProject()
oProject.InsertDesign("Simplorer", "Simplorer1", "", "")
oProject.DeleteDesign("Simplorer1")
oProject.InsertDesign("Icepak", "IcepakDesign1", "TemperatureAndFlow", "")
oProject.DeleteDesign("IcepakDesign1")
|
|