August 25, 2021 at 5:58 am
Subscriber
I found newer "Electronics Desktop Scripting Guide", which contains some new methods, not listed in "HFSS scripting guide" you had mentioned.
Particularly oModule.ListMatchingVariations
After hitting the wall countless times, by trial I found the non-mentioned prerequisite that oModule should be set to oDesign.GetModule("Solutions") !!!! No other module has that method inherited!
But then again, it does not allow excluding specific variations (last good variation) from the list because:
Methods
oModule.ListMatchingVariations("Setup1 : LastAdaptive",("Var"), ("value"))
and
oDesign.GetNominalVariation()
return different set (and order ?) of variables in string format, making them non-comparable.
Methods
oDesign.GetVariationVariableValue(list(i), "Var")
and
oDesign.GetVariableValue("Var")
return Var values in different format, with units applied, and without units; making them non-comparable again!
Why the **** is there no simple unit-aware comparison method?
Why the data stamp is not returned for variations?
Is there another undocumented set of functions/methods I should know?
Particularly oModule.ListMatchingVariations
After hitting the wall countless times, by trial I found the non-mentioned prerequisite that oModule should be set to oDesign.GetModule("Solutions") !!!! No other module has that method inherited!
But then again, it does not allow excluding specific variations (last good variation) from the list because:
Methods
oModule.ListMatchingVariations("Setup1 : LastAdaptive",("Var"), ("value"))
and
oDesign.GetNominalVariation()
return different set (and order ?) of variables in string format, making them non-comparable.
Methods
oDesign.GetVariationVariableValue(list(i), "Var")
and
oDesign.GetVariableValue("Var")
return Var values in different format, with units applied, and without units; making them non-comparable again!
Why the **** is there no simple unit-aware comparison method?
Why the data stamp is not returned for variations?
Is there another undocumented set of functions/methods I should know?