function NewLayer(ALayerName: string; aVisible: Boolean = true): integer;






Description:


 Add a layer for TMyCAD, return new layerid,   CurrentLayerid  is new layerid .


Return :

 -1: failed

 else: return LayerId.



Example:


if MyCAD1.NewLayer (' mapLayer')> -1then

 ShowMessage('Add ok');



See also:

CurrentLayerId