FeatureCylindrical (hwx.inspire)#

class FeatureCylindrical(*args)#

Bases: FeatureArea

Feature that is a cylindrical face. Represent the cylindrical areas of a part, i.e, the surface of a hole or a cylinder.

They are not created through the API but can be retrieved from a part.

Attribute Table#

Name

Type

axis

property

height

property

ishole

property

location

property

radius

property

Example

from hwx import inspire

model = inspire.newModel()
cyl = model.createSolidCylinder()
inspire.orientView(direction="isometric")

features = cyl.features
cylSurfaces = [x for x in features if isinstance(x, inspire.FeatureCylindrical)]
print("Cylinder has " + str(len(cylSurfaces)) + " cylindrical areas")
print("One cylindrical area located at: " + str(cylSurfaces[0].location))
print("One cylindrical area with surface value: " + str(cylSurfaces[0].area))
property radius#

Returns radius of cylinder.

property location#

Returns center of cylinder.

property axis#

Returns vector through center of hole.

property height#

Return the cylinder height.

property ishole#

Indicate whether the feature is hole or not.