C#

<< Click to Display Table of Contents >>

Navigation:  Tutorials >

C#

1.Install CADEditorX.

2.Open MS Visual Studio.

3.Create a new Windows Forms C# Application.

clip0036

4.Add the CADEditorX item to the tool palette

clip0037

5. Activate the SgCADEditor Object.

clip0038

6.Insert the SgCADEditor Object and a button to the form:

clip0039

7.Insert a sample code:

string command =
"<?xml version=\"1.0\" encoding=\"utf-8\"?><cadsofttools version=\"2\">" +
               "<add>"+
                 "<cstText Text=\"" + buttonHelloWorld.Text + "\" Point=\"0.5, 0.5\" Height=\"1\"/>" +
               "</add>" +
               "<FitToSize/>" +
"</cadsofttools>";
MessageBox.Show(axSgCADEditor1.ProcessXML(command));

 

clip0040

 

clip0041

8. Run the application and press the button.

Go to CADEditorX