Skip to content
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

ComponentDef.add_model failing #469

Open
2 tasks done
svandenb-dev opened this issue Nov 11, 2024 · 1 comment
Open
2 tasks done

ComponentDef.add_model failing #469

svandenb-dev opened this issue Nov 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@svandenb-dev
Copy link
Collaborator

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

I have a component definition with 2 pins
Image

Then I defined SparameterModel
n_port_model = GrpcSParameterModel.create(name=name, ref_net=reference_net)
n_port_model.reference_file = file_path

Image

Image

📝 Steps to reproduce

NA

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

NA

🐍 Which Python version are you using?

3.11

📦 Installed packages

NA
@svandenb-dev svandenb-dev added the bug Something isn't working label Nov 11, 2024
@chenchienjacklin
Copy link
Collaborator

@svandenb-dev Is this what you are looking for?

Database.delete(EDB_PATH)
db = Database.create(EDB_PATH)
cell = Cell.create(db, CellType.CIRCUIT_CELL, "main")
layout = cell.layout
component_def = ComponentDef.create(db, "ComponentDef1", None)
component = ComponentGroup.create(layout, "ComponentGroup1", component_def.name)
component.component_type = ComponentType.RESISTOR
sparam_model = SParameterModel.create("SParamModel1", "ref_net")
component_property = component.component_property
component_property.model = sparam_model
component.component_property = component_property

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants