MSEWallUnit#
MSE/SRW wall unit library entry. Unit type and shear model options are module-level string constants (not Python enums).
Proxy object representing an MSE / SRW wall unit in RSWall.
- rswall.MSEWallUnit.UNIT_TYPE_MODULAR = 'MODULAR'#
modular.
- Type:
MSE wall unit type string
- rswall.MSEWallUnit.UNIT_TYPE_WRAP_AROUND = 'WRAP_AROUND'#
wrap-around.
- Type:
MSE wall unit type string
- rswall.MSEWallUnit.SHEAR_TYPE_CONSTANT = 'CONSTANT'#
constant.
- Type:
Interlayer shear model string
- rswall.MSEWallUnit.SHEAR_TYPE_LINEAR = 'LINEAR'#
linear.
- Type:
Interlayer shear model string
- rswall.MSEWallUnit.SHEAR_TYPE_BILINEAR = 'BILINEAR'#
bilinear.
- Type:
Interlayer shear model string
- class rswall.MSEWallUnit.MSEWallUnit#
Bases:
_ProxyObjectMSE/SRW wall unit library entry.
Unit type and shear model options are module-level string constants (for example
UNIT_TYPE_MODULAR,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().
- setUnitType(unitType)#
Set unit type to MODULAR or WRAP_AROUND.
- 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; not valid for WRAP_AROUND).
- getCenterOfGravity()#
Center of gravity in project native length units (0 for WRAP_AROUND).
- Return type:
- setCenterOfGravity(centerOfGravity)#
Set center of gravity (non-negative; not valid for WRAP_AROUND).
- 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).
In CONSTANT shear mode this is the UI “Shear capacity” field (InterlayerMinShearStrength).
- 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 currently tagged on this wall unit.
When a preset was loaded (via the UI or applyManufacturerPreset), these fields record which catalog entry the engineering values came from. When no preset is applied (UI empty /
"None"selection), the RPC returns empty strings for guid/shortName/tooltip andhasSelection=Falseso clients can treat the strings as null.- Returns:
hasSelection - bool, True when a manufacturer preset is active guid - the preset GUID (empty string when not set) shortName - catalog type label, e.g. “28 in (710 mm) solid - R28T” tooltip - human-readable label, e.g. “RediRock - 28 in (710 mm) solid - R28T”
- Return type:
Dict with keys
- applyManufacturerPreset(guid)#
Apply a built-in manufacturer library preset to this wall unit by GUID.
Reads the preset engineering values (geometry, unit weight, interlayer shear strength) from the built-in catalog and writes all of them to the wall unit in a single operation. The three manufacturer tracking fields are also set so that getManufacturerSelection() immediately reflects the new preset.
All engineering values are overwritten; manually-entered values are replaced. The wall unit type (MODULAR / WRAP_AROUND) is not changed. User-defined manufacturer files from the UI dialog are not supported here.
- Parameters:
guid (
str) – The preset GUID from getManufacturerLibraryOptions().- Returns:
success - True on success shortName - catalog type label, e.g. “28 in (710 mm) solid - R28T” tooltip - human-readable label, e.g. “RediRock - 28 in (710 mm) solid - R28T”
- Return type:
Dict with keys
- clearManufacturerSelection()#
Clear the manufacturer preset tag from this wall unit.
After clearing, getManufacturerSelection() returns empty strings for guid/shortName/tooltip and hasSelection=False (clients may map those strings to null). Engineering values already written to the wall unit (geometry, shear strength, etc.) are NOT reverted.
- Return type: