淘宝官方店 推荐课程 在线工具 联系方式 关于我们 | |
微波射频仿真设计 Ansoft Designer 中文培训教程 | HFSS视频培训教程套装 |
|
首页 >> Ansoft Designer >> Ansoft Designer在线帮助文档 |
Script Guide > Overview of Designer Script VariablesWhen you record an Designer script, the beginning of the script looks like the following:
Dim oAnsoftApp Dim oDesktop Dim oProject Dim oDesign Dim oEditor Dim oModule Set oAnsoftApp = CreateObject("AnsoftDesigner.DesignerScript") Set oDesktop = oAnsoftApp.GetAppDesktop() oDesktop.RestoreWindow Set oProject = oDesktop.SetActiveProject("Project1") oProject.InsertDesign "Planar EM", "PlanarEM1", _ "C:\testinstall\Designer\syslib\PCB - SingleSided.asty", "" Set oDesign = oProject.SetActiveDesign("PlanarEM1") Set oEditor = oDesign.SetActiveEditor("Layout")
The lines above define the variables used by Designer in the script and assign values to the variables. The variables are used in the following hierarchy:
oDesignerAppThe oDesignerApp object provides a handle for VBScript to access the AnsoftDesigner product. One example of accessing this object is: Set oDesignerApp = CreateObject(“AnsoftDesigner.DesignerScript”)
oDesktopThe oDesktop object is used to perform desktop-level operations, including project management. One example of accessing this object is: Set oDesktop = oDesignerApp.GetAppDesktop()
oProjectThe oProject object corresponds to one project open in the product. It is used to manipulate the project and its data. Its data includes variables, material definitions and one or more designs. One example of accessing this object is: Set oProject = oDesktop.GetActiveProject()
oDesignThe oDesign object corresponds to an instance of a design in the project. This object is used to manipulate the design and its data. Its data includes variables, modules, and editors. One example of accessing this object is: Set oDesign = oProject.GetActiveDesign()
oEditorThe oEditor object corresponds to an editor, such as the layout or schematic editors. This object is used to add and modify data in the editor. One example of accessing this object is: Set oEditor = oDesign.SetActiveEditor(“Layout”)
The AnsoftDesigner product scripting supports the following editors:
oModuleThe oModule object corresponds to a module in the design. Modules are used to handle a set of related functionality. One example of accessing this object is: Set oModule = oDesign.GetModule(“Excitations”)
HFSS视频教程 ADS视频教程 CST视频教程 Ansoft Designer 中文教程 |
Copyright © 2006 - 2013 微波EDA网, All Rights Reserved 业务联系:mweda@163.com |