Skip to content

Commit e67bea8

Browse files
committed
A condition added to search in PersonalLib
1 parent fcb633e commit e67bea8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/ansys/aedt/core/modeler/circuits/primitives_emit.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,27 @@ def __init__(self, parent, modeler):
186186
self.modeler = modeler
187187
self._currentId = 0
188188
self.components = defaultdict(EmitComponent)
189+
self.include_personal_lib = False
189190
self.refresh_all_ids()
190191
self._components_catalog = None
191192
self._app = modeler._app
192193

194+
@property
195+
def include_personal_library(self, value=None):
196+
"""Include personal library."""
197+
if value is not None:
198+
self.include_personal_lib = value
199+
return self.include_personal_lib
200+
201+
@include_personal_library.setter
202+
def include_personal_library(self, value):
203+
self.include_personal_lib = value
204+
193205
@property
194206
def design_libray(self):
195207
"""Design library."""
208+
if self.include_personal_lib:
209+
return "PersonalLib"
196210
return "EMIT Elements"
197211

198212
@property

0 commit comments

Comments
 (0)