add_priority#
- IcepakMesh.add_priority(entity_type, obj_list=None, comp_name=None, priority=3)[source]#
Add priority to objects.
- Parameters:
- entity_type
int
Type of the entity. Options are
1
and2
, which represent respectively an object and a component.- obj_list
list
List of 3D objects, which can include conductors and dielectrics. If the user pass a non 3D object, it will be excluded.
- comp_name
str
,optional
Name of the component. The default is
None
.- priority
int
,optional
Level of priority. The default is
3
.
- entity_type
- Returns:
- bool
True
when successful,False
when failed.
References
>>> oEditor.UpdatePriorityList
Examples
>>> from pyaedt import Icepak >>> app = Icepak() >>> app.mesh.add_priority(entity_type=1, obj_list=app.modeler.object_names, priority=3) >>> app.mesh.add_priority(entity_type=2, comp_name=app.modeler.user_defined_component_names[0], priority=2)