AngleMeasure (hwx.inspire)#
- class AngleMeasure(location1, location2, location3, **kwds)#
Bases:
Measure
Measures the angle between three points.
Angle measure creates a INCANG request/measure.
# Name
Type
property
solverVariables
tuple
Example
from hwx import inspire model = inspire.newModel() block = model.createSolidBlock() # apply constraints (supports) on points point1 = block.features[0] point2 = block.features[1] point3 = block.features[2] angleMeasure = inspire.AngleMeasure(point1.location, point2.location, point3.location, entity1 = point1, entity2 = point2, entity3 = point3 ) print("Angle Measure: " + str(angleMeasure.angle)) face1 = block.features[18] face2 = block.features[19] face3 = block.features[20] angleMeasure = inspire.AngleMeasure( face1.location, face2.location, face3.location, entity1 = face1, entity2 = face2, entity3 = face3) print("Angle Measure: " + str(angleMeasure.angle)) inspire.orientView(direction="isometric")
- property entity1#
The first Part or Feature the measure is attached to.
- property entity2#
The second Part or Feature the measure is attached to.
- property location1#
Location of the measure on entity1.
- property location2#
Location of the measure on entity2.
- property entity3#
The third Part or Feature the measure is attached to.
- property location3#
Location of the measure on entity3.
- property angle#
Angle formed between the three points.
- property location#
Returns the location of the measure on entity2.