File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -2146,12 +2146,15 @@ def test_129_hfss_simulation_setup(self):
2146
2146
2147
2147
via_settings = setup1 .via_settings
2148
2148
via_settings .via_density = 1
2149
+ via_settings .via_mesh_plating = True
2149
2150
via_settings .via_material = "pec"
2150
2151
via_settings .via_num_sides = 8
2151
2152
via_settings .via_style = "kNum25DViaStyle"
2152
2153
2153
2154
via_settings = edbapp .setups ["setup1" ].via_settings
2154
2155
assert via_settings .via_density == 1
2156
+ if edbapp .edbversion > "2023.2" :
2157
+ assert via_settings .via_mesh_plating
2155
2158
assert via_settings .via_material == "pec"
2156
2159
assert via_settings .via_num_sides == 8
2157
2160
# assert via_settings.via_style == "kNum25DViaStyle"
Original file line number Diff line number Diff line change
1
+ from pyaedt .aedt_logger import pyaedt_logger as logger
1
2
from pyaedt .edb_core .edb_data .simulation_setup import BaseSimulationSetup
2
3
from pyaedt .edb_core .edb_data .simulation_setup import EdbFrequencySweep
3
4
from pyaedt .edb_core .general import convert_py_list_to_net_list
@@ -942,6 +943,28 @@ def via_density(self, value):
942
943
self ._via_settings .ViaDensity = value
943
944
self ._parent ._update_setup ()
944
945
946
+ @property
947
+ def via_mesh_plating (self ):
948
+ """Via mesh plating.
949
+
950
+ Returns
951
+ -------
952
+ bool
953
+ """
954
+ if self ._parent ._pedb .edbversion < "2024.1" : # pragma: no cover
955
+ logger .warning ("via_mesh_plating is only supported by 2024 R1 and later version." )
956
+ return False
957
+ else : # pragma: no cover
958
+ return self ._via_settings .ViaMeshPlating
959
+
960
+ @via_mesh_plating .setter
961
+ def via_mesh_plating (self , value ):
962
+ if self ._parent ._pedb .edbversion < "2024.1" :
963
+ logger .warning ("via_mesh_plating is only supported by 2024 R1 and later version." )
964
+ else : # pragma: no cover
965
+ self ._via_settings .ViaMeshPlating = value
966
+ self ._parent ._update_setup ()
967
+
945
968
@property
946
969
def via_material (self ):
947
970
"""Via material.
You can’t perform that action at this time.
0 commit comments