Manual:TCAD for .NET FAQ

From TCAD Wiki

Jump to: navigation, search

Contents

TCAD Install and uninstall

How to install of TCAD?

  • Visual Studio
1. Run Visual Studio.
2. Click the right mouse button on tool box.
3. Choose the "Add/Remove item".
4. Click the "Browse" button on the right bottom of the dialog.
5. Selecte the "Codeidea.UltraGraphics.dll",then Click "OK" button.
  • Delphi
1. Run Delphi environment.
2. Select the "Component" menu,choose the "Installed .NET Components" item.
3. Choose the ".NET Components" page in dialog.
4. Click the "Select an Assembly.." buttom,select the "Codeidea.UltraGraphics.dll".
5. Click the "OK" button to finish the installation.

I can't register tcad pro?

You should register tcad when you purchased pro edition.
1. Download Register TCAD tool and run it, you'll get the computer hardware id;
2. Please send this hardware id to us, we will give you a serial no.
3. Run Register TCAD tool again,and enter the serial number to register tcad.

NOTE:

If you use Windows Vista OS or higher, please disable UAC(user account control) by tool which you find in control panel.

Working with TCAD

How to select all shapes in a layer?

private void button2_Click_4(object sender, System.EventArgs e)
{
    Int32 i = myCAD1.GetShapesByLayerId(0).Length;
    myCAD1.WorkingShapes = (MyShape[])Redim(myCAD1.WorkingShapes, i);
    myCAD1.WorkingShapes = myCAD1.GetShapesByLayerId(0);
    myCAD1.Refresh();
}
public static Array Redim(Array origArray,Int64 desiredSize)
{
    Type t = origArray.GetType().GetElementType();
    Array newArray = Array.CreateInstance(t,desiredSize);
    Array.Copy(origArray,0,newArray,0,Math.Min(origArray.Length,desiredSize));
    return newArray;
}
Personal tools
TCAD for .NET
TCAD for WEB