Model.hm_getlinelineangle#
- Model.hm_getlinelineangle(line_entity1, line_entity2, x, y, z)#
Returns the angle between two lines at one of their intersection points. If the specified point is found to be on both lines, then it calculates the angle between the lines at this point and returns its value in degrees. Otherwise, an error is returned.
- Parameters:
line_entity1 (Entity) – The object describing the first line entity.
line_entity2 (Entity) – The object describing the second line entity.
x (double) – The x-coordinate of the point P.
y (double) – The y-coordinate of the point P.
z (double) – The z-coordinate of the point P.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:angle (double)
Example#
Find the angle between line 43 and line 58 at point ( 4.7 , 6.88 , 9.4 )#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getlinelineangle( line_entity1=ent.Line(model, 43), line_entity2=ent.Line(model, 58), x=4.7, y=6.88, z=9.4 ) print("angle", result.angle)