HMIN_overWriteEntity()
Will overwrite or not overwrite entities when the option ‘FE overwrite’ is selected during feinput import.
Syntax
void HMIN_overWriteEntity(HM_entitytype entity_type, int flag);
Type
HyperMesh hminlib Function
Description
Will overwrite or not overwrite entities when the option ‘FE overwrite’ is selected during feinput import.
Inputs
- entity_type
- The entity type to be overwritten or the entity type not to be overwritten.
- flag
- 0 - Not to overwrite an entity when the option FE overwrite is selected.
The above function can be used if a user does not want to overwrite all of the
configurations and types of an entity, or even a particular configuration and type of an
entity. The above function supports the following entities:
- HM_ENTITYTYPE_GROUPS
- HM_ENTITYTYPE_LOADCOLS
- HM_ENTITYTYPE_EQUATIONS
- HM_ENTITYTYPE_OUTPUTBLOCKS
- HM_ENTITYTYPE_ASSEMS
- HM_ENTITYTYPE_CONTROLVOLS
- HM_ENTITYTYPE_ELEMS
- HM_ENTITYTYPE_PROPS
Example
In order to not overwrite a particular element, call the
HMIN_overWriteEntity() function with flag = 0, and
after writing the element, set flag = 1 so that rest of the elements are
overwritten.
HMIN_overWriteEntity(HM_ENTITYTYPE_ELEMS, 0);
HMIN_element_writequad4(id, 0, nodes, collectorid);
Write all the attributes belonging to the element quad4
HMIN_overWriteEntity(HM_ENTITYTYPE_ELEMS, 1);
Errors
None.