Skip to content

Latest commit

 

History

History
64 lines (53 loc) · 1.39 KB

File metadata and controls

64 lines (53 loc) · 1.39 KB

GetLayerElevationN

Description

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)

Parameters

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.

Examples

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);
GetLayerElevationN(h, 1.0, 2.0);
import vs

# Gets the elevation and thickness of the specified layer in document units.
h = vs.FSActLayer()  # handle to the first selected object on the active layer

baseElev, thickness = vs.GetLayerElevationN(h)
vs.Message('GetLayerElevationN returned: ' + str((baseElev, thickness)))

See Also

VS Functions: SetLayerElevationN

Version

Availability: from Vectorworks 2025

Category