淘宝官方店     推荐课程     在线工具     联系方式     关于我们  
 
 

微波射频仿真设计   Ansoft Designer 中文培训教程   |   HFSS视频培训教程套装

 

Agilent ADS 视频培训教程   |   CST微波工作室视频教程   |   AWR Microwave Office

          首页 >> Ansoft Designer >> Ansoft Designer在线帮助文档


Ansoft Designer / Ansys Designer 在线帮助文档:


Script Guide >
Project Object Script Commands >
   SaveAs       


SaveAs

Use:                   Saves the project under a new name.

Command:         File > Save As

Syntax:              SaveAs <FileName> <OverWrite> <DefaultAction> <OverrideActions>

Return Value:    None

Parameters:       

                          <FileName>

                          Type: <string>

                          New name for the file

                           

                          <OverWrite>

                          Type: <bool>

                          Set to true if an existing project by that name should be overwritten

                          <DefaultAction>

                          Type: <string>

                          Set to one of the following action strings: ef_overwrite , ef_copy_no_overwrite, ef_make_path_absolute or empty string

                           

                          <OverrideActions>

                          Type: Array("Name: OverrideActions", <Files>, <Files>, ...)

                          <Files>

                          Type: Array("Name: <Action>", <FileName>, <FileName>, ...)

                           

                          <DAction>

                          Type: <string>

                          Set to one of the following action strings: ef_overwrite , ef_copy_no_overwrite, ef_make_path_absolute or empty string

                           

Example:           oProject.SaveAs

                           "F:\Designer Projects\TA33097\HighSpeedChannel.adsn", true, "ef_overwrite", Array("NAME:OverrideActions",

                          Array("NAME:ef_copy_no_overwrite", Array("NAME:Files","$PROJECTDIR/circuit_models.inc")),

                          Array("NAME:ef_make_path_absolute", Array("NAME:Files","$PROJECTDIR\SL_6s.sp")))

 

Note 

The Action and DefaultAction strings correspond to the following actions:

ef_overwrite — Copy File to New Project Directory and Overwrite

ef_copy_no_overwrite — Copy File to New Project Directory and Don't Overwrite

ef_make_path_absolute — Change Reference to Point to File in Old Project Directory

empty string — Do Nothing

 

The DefaultAction is applied to all files that are NOT explicitly listed in the OverrideActions array. Those in the OverrideActions array are separate arrays for actions that are different from the default action; those actions are applied to the files listed in the same array:

If OverrideActions are not specified, then DefaultAction is applied to ALL files in project directory.

If DefaultAction is not specified, then nothing is done (action is Do Nothing).

 




HFSS视频教学培训教程 ADS2011视频培训教程 CST微波工作室教程 Ansoft Designer 教程

                HFSS视频教程                                      ADS视频教程                               CST视频教程                           Ansoft Designer 中文教程


 

      Copyright © 2006 - 2013   微波EDA网, All Rights Reserved    业务联系:mweda@163.com