GabionWallUnit#
Gabion wall unit library entry. Shear model options are module-level string constants (not Python enums).
Proxy object representing a gabion wall unit in RSWall.
- rswall.GabionWallUnit.SHEAR_TYPE_CONSTANT = 'CONSTANT'#
constant.
- Type:
Interlayer shear model string
- rswall.GabionWallUnit.SHEAR_TYPE_LINEAR = 'LINEAR'#
linear.
- Type:
Interlayer shear model string
- rswall.GabionWallUnit.SHEAR_TYPE_BILINEAR = 'BILINEAR'#
bilinear.
- Type:
Interlayer shear model string
- class rswall.GabionWallUnit.GabionWallUnit#
Bases:
_ProxyObjectGabion wall unit library entry.
Shear model options are module-level string constants such as
SHEAR_TYPE_CONSTANT.- getUnitDetails()#
Read the full wall unit state in one call.
- getColour()#
Return unit colour as (red, green, blue, alpha) 0-255.
- setColour(red, green, blue, alpha=255)#
Set unit colour using RGBA components (0-255).
- setColor(red, green, blue, alpha=255)#
Alias for
setColour().
- setHeight(height)#
Set height in project native length units (must be > 0).
- setWidth(width)#
Set width in project native length units (must be > 0).
- setDepth(depth)#
Set depth in project native length units (must be > 0).
- setUnitWeight(unitWeight)#
Set unit weight in project native units (allows 0; rejects negatives).
- setInterlayerShearStrengthType(shearType)#
Set interlayer shear strength type (CONSTANT, LINEAR, or BILINEAR).
- getMinShearCapacity()#
Minimum shear capacity in project native linear-force units.
- Return type:
- setMinShearCapacity(minShearCapacity)#
Set minimum shear capacity in project native linear-force units (non-negative).
- getMaxShearCapacity()#
Maximum shear capacity in project native linear-force units.
- Return type:
- setMaxShearCapacity(maxShearCapacity)#
Set maximum shear capacity in project native linear-force units (non-negative).
- getTangentShearCapacity()#
Tangent shear capacity for BILINEAR type (native linear-force units).
- Return type:
- setTangentShearCapacity(tangentShearCapacity)#
Set tangent shear capacity for BILINEAR type (non-negative).
- setFrictionAngle(frictionAngle)#
Set interlayer friction angle in degrees (non-negative).
- setFrictionAngle2(frictionAngle2)#
Set second friction angle for BILINEAR type, in degrees (non-negative).
- getManufacturerSelection()#
Return the manufacturer preset tagged on this wall unit.
- applyManufacturerPreset(guid)#
Apply a built-in gabion manufacturer preset by GUID.
Writes geometry, unit weight (CSV Weight is direct), and interlayer shear from the shipped catalog. User-defined manufacturer files are not supported.