Reading objects in Hfss3DLayout (pyaedt) #5553
-
I am working on pyaedt (python based ansys modelling) and I have a Hfss3DLayout project. I want to read the objects on a particular layer.
With the above function, I can get the list of object names but not the actual objects. In Q3D and HFSS, there is a function project.modeler.get_object_from_name("objectName"), which can be used to get objects using the name of the object, but this function does not exist for Hfss3DLayout. How can I read the object in Hfss3DLayout? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@neeraj-lohia You can get the object just doing: project.modeler.geometries[object_layer1[0]] I encourage you to debug with an IDE like Pycharm or Visual Studio, it will help you to identify which properties and method can help you. Samuel |
Beta Was this translation helpful? Give feedback.
@neeraj-lohia You can get the object just doing:
project.modeler.geometries[object_layer1[0]]
I encourage you to debug with an IDE like Pycharm or Visual Studio, it will help you to identify which properties and method can help you.
Samuel