Model.attributedelete#
- Model.attributedelete(entity, attribute_name_or_id, solver)#
Deletes at attribute from an entity.
- Parameters:
entity (Entity) – The object describing the entity.
attribute_name_or_id (hwString) – The name or ID of the attribute to delete.
solver (int) – The solver number of the attribute.
Example#
Delete * PSHELL_T * dataname (identifier=95) in property with ID 1 in Optistruct profile#import hm import hm.entities as ent model = hm.Model() # Setting the dataname model.attributedelete( entity=ent.Property(model, 1), attribute_name_or_id="PSHELL_T", solver=1, )