NewLayer

<< Click to Display Table of Contents >>

Navigation:  MyCAD > Methods >

NewLayer

public Int32 NewLayer(String lName,Boolean lVisible)

 

Description:

 Create a new layer.

 

Parameter:

 lName: The layer name

 lVisible: The layer visible or not

 

Return value:

 Return the layer id

 

Example:

 private void button1_Click(object sender, System.EventArgs e)

 {

         myCAD1.NewLayer("Layer" + Convert.ToString(myCAD1.GetMaxLayerId()+1),true);

 }