MergeLayers

<< Click to Display Table of Contents >>

Navigation:  TMyCAD > Methods >

MergeLayers

function MergeLayers(LayerId1,LayerId2:integer): Boolean;

 

 

       

Description:

 

 Merge Layer2 to Layer1 and remove the layer2, CurrentLayerId is  Layer1.

 

Return :

 false: failed

 true:  merge success

 

 

Example:

 

if MyCAD1.NewLayer (1,2) then

 ShowMessage('Merge ok!');

 

 

See also:

CurrentLayerId