BTLxPart

class compas_timber.fabrication.BTLxPart[source]

Bases: BTLxGenericPart

Class representing a BTLx part. This acts as a wrapper for an Element object.

Parameters:
elementTimberElement

The element object.

order_numint

The order number of the part.

scale_factorfloat, optional

The scale factor to apply to the part’s dimensions. Used when the design unit is anything other than mm. Defaults to 1.0.

Attributes:
attrdict

Return the attributes dictionary for the part XML element.

elementElement

The element object.

lengthfloat

The length of the element.

widthfloat

The width of the element.

heightfloat

The height of the element.

frameFrame

The frame of the BTLxPart at the corner of the blank box that puts the blank geometry in positive coordinates.

processingslist

A list of the processings applied to the element.

Methods

ref_side_from_face

Finds the one-based index of the reference side with normal that matches the normal of the given element face.

Inherited Methods

et_point_vals

Returns the ET point values for a given point.