gis:has-layer


(gis:has-layer  name)

Returns whether the 'GIS Layer' specified by name exists in the current drawing.

Arguments

name  (string) the name of the 'GIS Layer' to be verified

Return

T or NIL

Example

(vl-load-gis)  T
(gis:has-layer "xxxxxxxx")  NIL

(setq layers (gis:get-layers))  ("shp_3857_point_2d_utf8")
(setq name (car layers))  "shp_3857_point_2d_utf8"
(gis:has-layer name)  T

Remarks




©  Bricsys NV. All rights reserved.