GabionSectionProfile#
Gabion section profile library entry.
For batter vs setback distance: prefer setBatterAngleMode(...) (or call
setUseLayerSetbackDistance(False) before setUniformAngleBatter).
Proxy object representing a gabion section profile in RSWall.
- class rswall.GabionSectionProfile.GabionSectionProfile#
Bases:
_ProxyObjectRepresents a gabion section profile in a gabion RSWall project.
Wraps a GabionSectionProfileData entry in the project property library.
- getProfileDetails()#
Read the full section profile state in one call.
- getColour()#
Return profile colour as (red, green, blue, alpha) 0-255.
- setColour(red, green, blue, alpha=255)#
Set profile colour using RGBA components (0-255).
- setColor(red, green, blue, alpha=255)#
Alias for
setColour().
- setNumCourses(numCourses)#
Set the number of wall courses (minimum 1).
- setUseUniformWallUnitData(useUniformWallUnitData)#
Toggle uniform vs per-course wall unit assignment.
NCMA projects always use uniform wall-unit data. Passing
Falseraises FailedPrecondition (the UI also forces uniform assignment for NCMA).
- setUniformWallUnitName(uniformWallUnitName)#
Set the uniform wall unit by library name.
Also enables
useUniformWallUnitDataand applies the unit to every course. Per-course units needsetUseUniformWallUnitData(False)first, which NCMA projects reject.
- setUseUniformSetback(useUniformSetback)#
Toggle uniform vs per-course setback assignment.
- getUseLayerSetbackDistance()#
Whether horizontal setback distance is used between courses.
- Return type:
- setUseLayerSetbackDistance(useLayerSetbackDistance)#
Select the setback mode: distance (
True) or batter-angle (False).Warning
The default is
True(distance). CallingsetUniformAngleBatterwithout first callingsetUseLayerSetbackDistance(False)stores the angle but continues rendering in distance mode. PrefersetBatterAngleMode(...)to switch mode and set the angle together.
- getUniformLayerSetbackDistance()#
Uniform horizontal setback in project native very-small-length units.
- Return type:
- setUniformLayerSetbackDistance(uniformLayerSetbackDistance)#
Set uniform horizontal setback (non-negative; project very-small-length units).
Also enables
useUniformSetbackand applies the distance to every course.
- setUniformAngleBatter(uniformAngleBatter)#
Set uniform batter angle in degrees (UI range [0, 30]).
WARNING: This stores the angle value but does NOT switch the profile to batter-angle mode and does not change geometry until
setUseLayerSetbackDistance(False). The profile defaults to distance mode (useLayerSetbackDistance=True). If you only call this method the angle is stored but the wall geometry continues to be governed by the setback distance, making this call effectively a no-op for rendering.To switch to batter-angle mode AND set the angle, use
setBatterAngleMode(degrees)instead. Alternatively, callsetUseLayerSetbackDistance(False)first, then this method.
- setBatterAngleMode(uniformAngleBatter)#
Switch to batter-angle mode and set the angle.
Equivalent to the RSWall UI “Batter Angle” radio-button selection followed by entering the angle. This is the recommended method when you want to set a batter angle from scripting, as it guarantees the mode flag is also updated.
Uses existing
setUseLayerSetbackDistance(False)+setUniformAngleBatter; there is no separate RPC endpoint.
- setElevationAtToe(elevationAtToe)#
Set bottom course elevation in project native length units.
- setCourseWallUnitName(courseNumber, wallUnitName)#
Assign a wall unit to a single course (requires non-uniform mode).
- setCourseSetbackDistance(courseNumber, setbackDistance)#
Set setback for a single course (non-negative; requires non-uniform setback mode).
- setUseUniformBasketCount(useUniformBasketCount)#
Toggle uniform vs per-course basket count assignment.
- setUniformBasketCount(uniformBasketCount)#
Set uniform basket count (minimum 1).
Also enables
useUniformBasketCountand applies the count to every course. For a staircase / per-course pattern, callsetUseUniformBasketCount(False)thensetCourseBasketCountper layer instead.
- setBasketTiltAngle(basketTiltAngle)#
Set whole-wall basket tilt angle in degrees (UI range [0, 30]).
- setCourseBasketCount(courseNumber, basketCount)#
Set basket count for a single course (requires non-uniform basket mode).