Gets the elevation and thickness of the specified layer in document units.
PROCEDURE GetLayerElevationN(
h : HANDLE;
VAR baseElev : REAL;
VAR thickness : REAL);def vs.GetLayerElevationN(h):
return (baseElev, thickness)| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to the layer. |
| baseElev | REAL | Base elevation of the layer in document units. |
| thickness | REAL | Thickness of the layer in document units. |
PROCEDURE Example;
VAR
h :HANDLE;
baseElev, thickness :REAL;
BEGIN
h := FLayer;
WHILE h <> NIL DO BEGIN
GetLayerElevationN(h, baseElev, thickness);
thickness := thickness / (25.4 / GetPrefReal(152));
AlrtDialog(Concat('layer name: ', GetLName(h), ', baseElev: ', baseElev, ', thickness: ', thickness));
h := NextLayer(h);
END;
END;
RUN(Example);VS Functions: SetLayerElevationN
Availability: from Vectorworks 2025