ansys / pyedb-core

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

set_hfss_extent_info #333

Closed svandenb-dev closed 7 months ago

svandenb-dev commented 11 months ago

🔍 Before submitting the issue

🐞 Description of the bug

I tried to debug the command set_hfss_extent_info. initially I found an error, i think it should be self._Cellstub instead of self.stub. However even after modifying the applied new HfssExtentInfo is not applied.

def set_hfss_extent_info(self, extents):
    """Set HFSS Extents of this cell.

    Parameters
    ----------
    extents : :class: HfssExtentInfo <ansys.edb.utility.HfssExtentInfo>
    """
    self._Cell__stub.SetHfssExtentInfo(_QueryBuilder.set_hfss_extents(self, extents))

📝 Steps to reproduce

NA

💻 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
hiro727 commented 9 months ago

@svandenb-dev can you add repro step?

I tried the following and did seem to work fine

name = 'example'
db = Database.create(name)
cell = Cell.create(db, CellType.CIRCUIT_CELL, "Example")
ei = cell.hfss_extent_info

# modify extent info
ei.airbox_horizontal = (0.5, False)
ei.base_polygon = Polygon.create(...)
# etc

cell.set_hfss_extent_info(ei)
ei2 = cell.hfss_extent_info

# correct values for ei2 
svandenb-dev commented 7 months ago

This issue is old this was probably fixed. Let's close it.