+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 5
    Points: 60, Level: 1

    Join Date
    Sep 2014
    Posts
    9
    Helped
    0 / 0
    Points
    60
    Level
    1

    HFSS Python - Command Line

    I am trying to catch command line arguments passed to my python script in hfss from a terminal. I found in the documentation that in VBScript, these command line arguments are stored in a AnsoftScriptHost.arguments collection. I am trying to figure out what the equivalent to this is in python.

    Thanks in advance for the help.

    •   Alt12th September 2014, 21:04

      advertising

        
       

  2. #2
    Junior Member level 2
    Points: 2,153, Level: 10

    Join Date
    Feb 2005
    Posts
    24
    Helped
    1 / 1
    Points
    2,153
    Level
    10

    Re: HFSS Python - Command Line

    It's called "ScriptArgument"


    1 members found this post helpful.

    •   Alt13th September 2014, 19:54

      advertising

        
       

  3. #3
    Newbie level 5
    Points: 60, Level: 1

    Join Date
    Sep 2014
    Posts
    9
    Helped
    0 / 0
    Points
    60
    Level
    1

    Re: HFSS Python - Command Line

    Quote Originally Posted by z3phyr View Post
    It's called "ScriptArgument"
    Hey thanks, worked like a charm. If you don't mind me asking, where did you find that information? Or was it trial and error?



    •   Alt15th September 2014, 14:00

      advertising

        
       

  4. #4
    Junior Member level 2
    Points: 2,153, Level: 10

    Join Date
    Feb 2005
    Posts
    24
    Helped
    1 / 1
    Points
    2,153
    Level
    10

    Re: HFSS Python - Command Line

    It is available in the hfss scripting guide. You could find it from the Help menu or just search the doc folder under the installation directory.


    Quote Originally Posted by Daniel Waseem View Post
    Hey thanks, worked like a charm. If you don't mind me asking, where did you find that information? Or was it trial and error?



--[[ ]]--