-
How to use pyaedt to iterate through all the objects in IcepakDesign and put the objects that start with a specific string into a new list? |
Beta Was this translation helpful? Give feedback.
Answered by
fwlfHS
Mar 14, 2024
Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Does that work?: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aknsj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does that work?:
all_objs = ipk.modeler.object_list
objects_list = [obj for obj in all_objs if obj.name.lower().startswith("block")]
name_list = [obj.name for obj in all_objs if obj.name.lower().startswith("block")]