GetLayerIdByName

<< Click to Display Table of Contents >>

Navigation:  TMyCAD > Methods >

GetLayerIdByName

function GetLayerIdByName(ALayerName: string): integer;

 

 

Description:

 

    Get  layer's Id and it's name is ALayerName, if do not match ALayerName, return -1;

 

Sample:

 

procedure Form1.Button1Click(Send:TObject)

begin

 ShowMessage(' The Layers name is:'+'MyName' +' its layer Id is: '+Inttostr(MyCAD1. GetLayerIdByName('MyName')));

end;

 

See Also:

GetLayerNameById

GetLayerNobyId