NewLayer
<< Click to Display Table of Contents >> Navigation: TMyCAD > Methods > NewLayer |
function NewLayer(ALayerName: string; aVisible: Boolean = true): integer;
Description:
Add a layer for TMyCAD, return new layerid, CurrentLayerid is new layerid also.
Return :
-1: failed
else: return LayerId.
Example:
if MyCAD1.NewLayer (' mapLayer')> -1 then
ShowMessage('Add ok');
See also: