add_priority#
- IcepakMesh.add_priority(entity_type, assignment=None, component=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.- assignment
list
List of 3D objects, which can include conductors and dielectrics. If a non-3D object is passed, it is excluded.
- component
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,assignment=app.modeler.object_names,priority=3) >>> app.mesh.add_priority(entity_type=2,component=app.modeler.user_defined_component_names[0],priority=2)