ansys / pyedb-core

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

Layout.zone_primitives failing #447

Closed svandenb-dev closed 1 month ago

svandenb-dev commented 1 month ago

🔍 Before submitting the issue

🐞 Description of the bug

When trying to retrieve zone primitives (the layout is multizone) we got this error.

image

image

image

self = <pyedb.grpc.edb_core.layout.layout.Layout object at 0x000001B9D2BEAA90>

@property
def zone_primitives(self):
    """:obj:`list` of :class:`.Primitive`: List of \
    all primitives in the :term:`zones <Zone>`.

    This property is read-only.
    """
  return [Primitive(msg) for msg in self.__stub.GetZonePrimitives(self.msg)]

E TypeError: 'EDBObjCollectionMessage' object is not iterable

📝 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

NA
svandenb-dev commented 1 month ago

EDB project can be downloaded here for testing https://ansys-my.sharepoint.com/:u:/p/simon_vandenbrouck/Ee8mdpjmnBFPoSZ8ibvDBoMBRnRQhR0UrvHL2B0TWlMmqA?e=qVDsVb