Axis (hwx.inspire.geometry)#

class Axis(features, directionType)#

Bases: BaseSystem

Reference Axis can be used to create or modify geometry.

__new__(cls, features, directionType)#

Create a reference axis.

Parameters:
  • features (list[Feature]) – Features to create a reference axis.

  • directionType (str) – Direction Type. - THROUGH_EDGE - THROUGH_CYLINDER - THROUGH_TWO_POINTS - THROUGH_TWO_PLANES - NORMAL_TO_FACE_AT_A_POINT

Example

from hwx import inspire

model = inspire.newModel()
model.createSolidBlock()
feature = model.getFeatures(type="FeatureLinear")[0]
inspire.geometry.Axis(feature, "THROUGH_EDGE")
print("Reference Axis has been created by THROUGH_EDGE method")
inspire.orientView(direction="isometric")