add_priority#

IcepakMesh.add_priority(entity_type, obj_list=None, comp_name=None, priority=3)[source]#

Add priority to objects.

Parameters:
entity_typeint

Type of the entity. Options are 1 and 2, which represent respectively an object and a component.

obj_listlist

List of 3D objects, which can include conductors and dielectrics. If the user pass a non 3D object, it will be excluded.

comp_namestr, optional

Name of the component. The default is None.

priorityint, optional

Level of priority. The default is 3.

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)