add_priority#

IcepakMesh.add_priority(entity_type, assignment=None, component=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.

assignmentlist

List of 3D objects, which can include conductors and dielectrics. If a non-3D object is passed, it is excluded.

componentstr, 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,assignment=app.modeler.object_names,priority=3)
>>> app.mesh.add_priority(entity_type=2,component=app.modeler.user_defined_component_names[0],priority=2)