ansys / pyedb-core

Ansys Electronics Database Python Client Package
https://edb.core.docs.pyansys.com/
MIT License
3 stars 1 forks source link

DieProperty.type setter issue #315

Closed svandenb-dev closed 5 months ago

svandenb-dev commented 10 months ago

🔍 Before submitting the issue

🐞 Description of the bug

It seems the DiePropertytype setter has an issue and doesn't apply changes. I have used both ComponentProperty.die_property getter and clone (method) to be sure It was properly cloned but both give the same behavior.

ic_die_prop.type = definition.DieType.FLIPCHIP

image

but strange thing is when I use the type getter it is here

image

image

📝 Steps to reproduce

load an edb contact me if needed

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

No response

🐍 Which Python version are you using?

3.10

📦 Installed packages

pyedb-core
drewm102 commented 5 months ago

@svandenb-dev The attribute of the DiePropety object you want to set is die_type not type. The type attribute doesn't exist on the DieProperty object. When you set it, it creates a new atribute on the DiePropety object called type because that is the standard behavior of python but it never actually gets used in the EDB. Setting the die_type attribute should result in the behavior you want. Thanks!