Skip to content

FIX: Speedup extension cutout #6079

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/6079.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Speedup extension cutout
16 changes: 11 additions & 5 deletions src/ansys/aedt/core/workflows/hfss3dlayout/cutout.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

from pathlib import Path

import ansys.aedt.core
Expand Down Expand Up @@ -79,11 +78,18 @@ def frontend(): # pragma: no cover

project_name = active_project.GetName()
h3d = ansys.aedt.core.Hfss3dLayout(project=project_name, design=design_name)

objs_net = {}
for net in h3d.oeditor.GetNets():
objs_net[net] = h3d.modeler.objects_by_net(net)

# for net in h3d.oeditor.GetNets():
# objs_net[net] = h3d.modeler.objects_by_net(net)
for net, net_objs in h3d.modeler.edb.modeler.primitives_by_net.items():
objs_net[net] = [i.aedt_name for i in net_objs]
for net_obj in h3d.modeler.edb.padstacks.instances.values():
net_name = net_obj.net_name
if net_name in objs_net:
objs_net[net_obj.net_name].append(net_obj.aedt_name)
else:
objs_net[net_obj.net_name] = [net_obj.aedt_name]
h3d.modeler.edb.close_edb()
master = tkinter.Tk()

master.title(extension_description)
Expand Down
Loading