Part Measures Functions

This topic provides you with information about Part Measures functions.

This page discusses:

area

Signature

area(CATFace) : AREA

Arguments

NameInput / OutputRequired?TypeComment
InYesCATFace-

ReturnType

AREA

Example

Note: To view an example, import the Sample_extra.3dxml file located in win_b64\startup\Knowledgeware\PKT Samples\Sample 1 in the installation folder.

length

Signature

length(CATEdge) : LENGTH

Arguments

NameInput / OutputRequired?TypeComment
InYesCATEdge-

ReturnType

LENGTH

smartVolume

Returns the volume of a solid.

Signature

smartVolume([elem : Solid, ..]) : VOLUME

Arguments

NameInput / OutputRequired?TypeComment
elemInNoSolid-

ReturnType

VOLUME

Example

Total_Volume=smartVolume(PartBody)
Total_Volume= smartVolume(PartBody\Pad.1)

Both formulas return the same result since smartVolume does not compute the volume of each pad contained in a PartBody but the total volume.

smartWetarea

Returns the wet area of a solid.

Signature

smartWetarea([elem : Solid, ..]) : AREA

Arguments

NameInput / OutputRequired?TypeComment
elemInNoSolid-

ReturnType

AREA

Example

Total_Area=smartWetarea(PartBody\Pad.1)
Note: smartVolume and smartWetarea refer to intermediate states of a solid. smartVolume does not compute the volume of each pad contained in a PartBody but the total volume. This applies also to smartWetarea (the total wet area is computed).

GeometricFeature.GetSubElements()

Function used to return sub-elements of a feature.

Note: It is not possible to make assumptions about the ordering of this function result. Whenever the object the function is applied to is updated, the order of the rendered sub-elements can change.

Signature

GeometricFeature.GetSubElements(dimension : Integer) : List

Arguments

NameInput/OutputRequired?TypeComment
dimensionInYesInteger-

ReturnType

List

GeometricFeature.GetSubElements()

Function used to return sub-elements of a feature. An integer argument specifies the type you want:

  • vertex (0)
  • edge (1)
  • face (2).
Note: It is not possible to make assumptions about the ordering of this function result. Each time the object the function is applied to is updated, the order of the rendered sub-elements can change.

Signature

GeometricFeature.GetSubElements(dimension : Integer) : List

Arguments

NameInput / OutputRequired?TypeComment
dimensionInYesInteger

ReturnType

List

Example

let subElements (List)
subElements = PartBody\Pad.1.GetSubElements(0)
subElements = PartBody\Pad.1.GetSubElements(1)
subElements = PartBody\Pad.1GetSubElements(2)

GeometricFeature.ListParents()

Signature

GeometricFeature.ListParents() : List

ReturnType

List

Example

let parents (List)
parents = PartBody\Pad.1.ListParents()