pyEPR icon indicating copy to clipboard operation
pyEPR copied to clipboard

Get variable value from HFSS model

Open vegaonline opened this issue 4 years ago • 3 comments

The names of the variables could be obtained from pinfo.get_all_variables_names() as set of strings. It would be nice to see a function like pinfo.getValue('var name') to return the value(s) of the variable name(s) of the HFSS model obtained from the previous command. This could be something like functions get() and put() used in C++ sort of classes.

vegaonline avatar Aug 21 '20 08:08 vegaonline

Yeah, this can be a nice interface.

We can check if HFSS iphyhon COM interface allows for getting just one variable. In any case can get full and then return one.

Sent from my iPhone

On Aug 21, 2020, at 4:30 AM, Abhijit Bhattacharyya [email protected] wrote:

 The names of the variables cold be obtained from pinfo.get_all_variables_names() as set of strings. It would be nice to see a function like pinfo.getValue('var name') to return the value(s) of the variable name(s) of the HFSS model obtained from the previous command. This could be something like functions get() and set() used in C++ sort of classes.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

zlatko-minev avatar Aug 21 '20 14:08 zlatko-minev

I wanted to use get_variable_value(self, name) function in class HfssProject(desktop, Project) from ansys.py. I had problem in getting handles for desktop which I tried to get from class HfssDesktop from the same ansys.py. The function get_variable_value() has also set_variable(var, value).

vegaonline avatar Aug 21 '20 14:08 vegaonline

Not sure I completely follow. You can post minimal working code if you want.

We will have a working group meeting for pyEPR soon:

Meeting signup link: https://forms.gle/oYsCjCMZLZtfrGuFA Discussion link: https://github.com/zlatko-minev/pyEPR/issues/45

You can you sign up / help spread the word to anyone you think would be interest.

zlatko-minev avatar Sep 11 '20 03:09 zlatko-minev