Electronics

Electronics

Topics related to HFSS, Maxwell, SIwave, Icepak, Electronics Enterprise and more.

How to load VB script into HFSS in Non-graphical mode

    • vinayshetty
      Subscriber

      I have a VB script to design a metasurface.

      But it is taking more than 10 days to load the script into Ansys HFSS.

      I realised that one could load the vb script into HFSS in non Graphical mode in the beta version of the 2019R3 version to make the process fast.

      But I am unable to understand how to do that using the command line.

      If there is any clear step by step process to do that (since I have never used this process), could you please help me?

    • vinayshetty
      Subscriber
      Hi, I have found some information in the below mentioned link
      /forum/discussion/9696/vbscripting-ansys-hfss
      But I am unable to used the command prompt for using the below command
      "C:\Program Files\AnsysEM\AnsysEM19.5\Win64\ansysedt.exe" -features=beta -ng -runscriptandexit script_name.py aedt_file_name.aedt
      Could any one clarify few things
      Where should I save my VBS script and aedt file before executing the above command in command prompt
    • AndyJP
      Subscriber
      //sorry, ignore this. it is exactly what you mean.
    • AndyJP
      Subscriber
      >Where should I save my VBS script
      In Windows, like in DOS, there is a concept of current directory. so you don't need a path when changing the dir with DIR in console, or batch script. In case if you are a unix user.
    • vinayshetty
      Subscriber
      Hi, AndyJP.
      I still didn't understand.
      Could you please give me a step by step process of executing/loading the VBS script of a large structure in HFSS using the command prompt ( Windows 10) in nongraphical mode?
      Thanks in advance
      Vinay
    • AndyJP
      Subscriber
      as I said, I did not try it, just know what you already know. But when you see C:\Path\ansysedt.exe" -someparameter -anotherparameter file1 file2, that simply means that file 1, and file2 should be in the same directory, and you should execute the program from that directory as current directory. It is not linux, you don't have to provide the fullpath, or put it in a specific place, unless the program is really weird. the program itself is with path, because it is not in the PATH search list of Win/DOS. P.S. in dos console (cmd) the directory change command is the same, "cd c:\..." just the delimiter "\" is opposite.
    • Praneeth
      Ansys Employee

      Please go through "Running ANSYS Electronics Desktop from a Command Line" section in the HFSS help document for detailed information about your query.
      All the very best.

Viewing 6 reply threads
  • The topic ‘How to load VB script into HFSS in Non-graphical mode’ is closed to new replies.