Skip to content

FIX: EtchNetClass missing on StackupLayer #549

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chenchienjacklin
Copy link
Collaborator

closes #536

@chenchienjacklin
Copy link
Collaborator Author

tested by

from ansys.edb.core.database import Database
from ansys.edb.core.layout.cell import Cell
from ansys.edb.core.session import session
from ansys.edb.core.layer.stackup_layer import EtchNetClass

ANSYS_EM_ROOT = r"C:\Program Files\ANSYS Inc\v261\AnsysEM"
EDB_PATH = r"C:\Users\jlin\Documents\Ansoft\Kame_MB.aedb"
with session(ANSYS_EM_ROOT, 50055):
    try:
        db = Database.open(EDB_PATH, False)
        cell: Cell = db.circuit_cells[0]
        lc = cell.layout.layer_collection
        top = lc.find_by_name("Top")
        
        print(f"etch_factor_enabled {top.etch_factor_enabled}")
        top.etch_factor_enabled = True
        print(f"etch_factor_enabled {top.etch_factor_enabled}")
        
        print(f"etch_net_class {top.etch_net_class}")
        top.etch_net_class = EtchNetClass.NO_ETCH_POWER_GROUND
        print(f"etch_net_class {top.etch_net_class}")
        
    except Exception as e:
        raise e
    finally:
        db.close()
$ python test_etch_net_class.py 
etch_factor_enabled False
etch_factor_enabled True
etch_net_class EtchNetClass.ETCH_ALL_NETS
etch_net_class EtchNetClass.NO_ETCH_POWER_GROUND

@chenchienjacklin chenchienjacklin marked this pull request as ready for review May 14, 2025 15:06
@drewm102
Copy link
Collaborator

@chenchienjacklin Make sure to run parse_protos.sh to update rpc_info.py for caching/buffering support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EtchNetClass missing on StackupLayer
2 participants