ansys / ansys/pyedb

Conforming extent_type excludes pins and vias from cutout shape

Open
#2,334 10 comments 0 reactions 1 assignee Claimed by @svandenb-dev View on GitHub
bug
Dominant language
Python
Stars
29
Forks
30
Avg merge
2d 10h
Merged PRs (30d)
49

Description

### Before submitting the issue

- [x] I have searched among the existing issues
- [x] I am using a Python virtual environment

### Description of the bug

When extent_type = Conforming is specified, it appears that the shapes of pins and vias are not included in the cutout shape calculation.

As a result, the returned polygon shape is incomplete.

Is it possible to include pins and vias in the cutout shape calculation?

In the sample data (sample1.aedb), only 'net1' is present, and it is connected to other layers through pins and vias.
When "net1" is specified as the signal_nets and the extent_size is set small(0.0001), the cutout shape is interrupted at the pin/via locations.
The resulting cutout shape has been copied into the output file (output.aedb) - Cutout layer, so please take a look.

Thank you for your time and assistance.

[sample1.aedb.zip](https://github.com/user-attachments/files/29456372/sample1.aedb.zip)

[sample.py](https://github.com/user-attachments/files/29456402/sample.py)

### Steps To Reproduce

- Unzip sample1.aedb.zip
- Modify "edbpath" and "output_aedb_path" in sample.py, then run it
- Open output aedb folder with AEDT
- Check 'Cutout Layer'

### Which Operating System are you using?

Windows

### Which Python version are you using?

3.10

### Installed packages

annotated-doc==0.0.4
annotated-types==0.7.0
ansys-api-edb==0.3.2
ansys-edb-core==0.3.2
ansys-tools-common==0.5.1
certifi==2026.6.17
charset-normalizer==3.4.7
click==8.4.1
colorama==0.4.6
contourpy==1.3.2
cycler==0.12.1
defusedxml==0.7.1
fonttools==4.63.0
grpcio==1.81.1
idna==3.18
kiwisolver==1.5.0
markdown-it-py==4.2.0
matplotlib==3.10.9
mdurl==0.1.2
numpy==2.2.6
packaging==26.2
pillow==12.2.0
platformdirs==4.10.0
protobuf==6.33.6
psutil==7.2.2
pydantic==2.13.4
pydantic_core==2.46.4
pyedb==0.78.2
Pygments==2.20.0
pyparsing==3.3.2
python-dateutil==2.9.0.post0
requests==2.34.2
rich==15.0.0
scipy==1.15.3
scooby==0.11.2
shellingham==1.5.4
six==1.17.0
toml==0.10.2
typer==0.26.7
typing-inspection==0.4.2
typing_extensions==4.15.0
urllib3==2.7.0
xmltodict==1.0.4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.