PartOccurrence (hwx.inspire)#

class PartOccurrence#

Bases: Occurrence

Base class for Part and Sketch Part.

Attribute Table#

Name

Type

currentRepresentation

property

features

property

representations

property

Method Table#

Name

Description

getFeature (self, name=None)

Returns the feature based on its name.

getFeatures (self, type=None, rep=’BestRep’, **kwds)

Returns a list of features based on specified filters.

property representations#

Existing geometries of the part. ParasolidRep, StlRep, OpenVDBRep, PolymeshRep, …

Type:

list[str]

property currentRepresentation#

The active representation

Type:

str

property features#

Returns the list of features.

getFeatures(type=None, rep='BestRep', **kwds)#

Returns a list of features based on specified filters.

Parameters:
  • type (FeaturePoint, FeatureArea, FeatureCylindrical..etc)) – Filters the features based on type.

  • rep (str) – Feature representation. See part.representations for options

  • **kwds – Additional attributes to consider while filtering.

Returns:

List of

features that satisfies all the filter criteria.

Return type:

list [FeaturePoint, FeatureArea, FeatureCylindrical..etc)]

getFeature(name=None)#

Returns the feature based on its name.