SelectShapeByCode

<< Click to Display Table of Contents >>

Navigation:  MyCAD > Methods >

SelectShapeByCode

public Boolean SelectShapeByCode(Int64 aShapeId,Boolean removePrevSelectedShape)

 

Description:

 Select all shapes.

 

Parameter:

 aShapeId: the shape id that you want to select

 removePreSelectedShape: Weather remove the working previous shape or not

 

Return value:

 true: Select successfully

 false: Select unsuccessfully

 

Example:

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

 {

         myCAD1.SelectShapeByCode(1,false);

 }