Model.hm_getangle#
- Model.hm_getangle(entityType, id1, id2, id3)#
Returns the angle between three nodes/points.
- Parameters:
entityType (EntityFullType) – The type of entity to query. Valid entity types are nodes and points.
id1 (unsigned int) – The ID of the first entity.
id2 (unsigned int) – The ID of the second entity.
id3 (unsigned int) – The ID of the third entity.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:angle (double)
Example#
Get the angle between nodes with IDs 100 , 101 and 102#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getangle(entityType=ent.Node, id1=100, id2=101, id3=102) print("Angle:", result.angle)