Gets the thickness of a wall
FUNCTION GetWallThickness(
h : HANDLE;
VAR thicknessDist : REAL): BOOLEAN;def vs.GetWallThickness(h):
return (BOOLEAN, thicknessDist)| Name | Type | Description |
|---|---|---|
| h | HANDLE | |
| thicknessDist | REAL |
Same functionality as WallWidth(h), except that GetWallThickness returns also a Boolean, which may help in program flow branching.
BEGIN
GetUnits( fraction, display, format, upi, unitName, unitSqName );
factor := upi / 25.4;
result := GetWallThickness( wallHandle, height );
width := ( Str2Num( GetRField( objectHandle, objectName, 'DoorWidth' ) ) * factor );
extrudeHeight := ( Str2Num( GetRField( objectHandle, objectName, 'DoorHeight' ) ) * factor );import vs
# Gets the thickness of a wall.
h = vs.FSActLayer() # handle to the first selected object on the active layer
ok, thicknessDist = vs.GetWallThickness(h)
vs.Message('GetWallThickness returned: ' + str((ok, thicknessDist)))See also in tutorials: 27. Formatted Wall Schedule
Availability: from VectorWorks12.0