Skip to content

Latest commit

 

History

History
51 lines (43 loc) · 1.05 KB

File metadata and controls

51 lines (43 loc) · 1.05 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);

See Also

VS Functions: SetLayerElevationN

Version

Availability: from Vectorworks 2025

Category