Model.hm_getareaofsurface#
- Model.hm_getareaofsurface(entity_id)#
Returns the area of a surface.
- Parameters:
entity_id (Entity) – The object describing the entity. Only surface entity is valid.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:area (double) - Surface area
Example#
Get the area for surface with ID 100#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getareaofsurface(entity_id=ent.Surface(model, 100)) print("Surface Area:", result.area)