MSESectionProfile#
MSE/SRW section profile library entry.
For batter vs setback distance: calling setUniformAngleBatter without
switching mode can appear to succeed while geometry stays in distance mode.
Use setUseLayerSetbackDistance(False) first, or setBatterAngleMode(...).
Proxy object representing an MSE / SRW section profile in RSWall.
- class rswall.MSESectionProfile.MSESectionProfile#
Bases:
_ProxyObjectRepresents an MSE section profile in an RSWall SRW project.
Wraps an MSESectionProfileData 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 (1–1000, matches UI MaxValue).
- 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()#
Return whether setback-distance mode is active (True) vs batter-angle mode (False).
This flag is the exclusive toggle between the two course-setback modes:
True— Distance mode: each course is offset by a horizontal distance (uniformLayerSetbackDistance).False— Batter Angle mode: face angle drives the setback geometry (uniformAngleBatter).
Default is
True(distance mode). Setting the batter angle without first switching this flag toFalsestores the angle value but has no effect on the rendered geometry.- Return type:
- setUseLayerSetbackDistance(useLayerSetbackDistance)#
Select the setback mode: distance (True) or batter-angle (False).
This is the radio-button selector in the RSWall UI (“Distance” vs “Batter Angle”).
- Parameters:
useLayerSetbackDistance (
bool) –Trueactivates distance mode (uniformLayerSetbackDistancegoverns geometry).Falseactivates batter-angle mode (uniformAngleBattergoverns geometry).- Return type:
Warning
The default is
True(distance). CallingsetUniformAngleBatterwithout first callingsetUseLayerSetbackDistance(False)will silently store the angle but continue rendering in distance mode. Always call this before setting the angle, or usesetBatterAngleMode()which performs both steps.
- 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)#
Store the 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.
- getBottomLayerElevation()#
Bottom course elevation in project native length units.
- Return type:
- setBottomLayerElevation(bottomLayerElevation)#
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).