Well what do you know it worked, my .NET wrappers for SDS also seem to work with Intellicad’s new 6.4 object model, I was able to draw a line using this code. Kewl!

C# !!

Code: Select all

//intellicad com
    public static void Test1()
        IntelliCAD.Application application = 
        IntelliCAD.Document document = application.ActiveDocument;
        IntelliCAD.ModelSpace modelspace = document.ModelSpace;
        IntelliCAD.Library library = application.Library;
        IntelliCAD.Point point1 = library.CreatePoint(0,0,0);
        IntelliCAD.Point point2 = library.CreatePoint(100,100,0);
        IntelliCAD.Line line = modelspace.AddLine(point1, point2);
      catch (SystemException e)

    //through the lisp engine
    public static void Testline1()
      using (Line myLine = new Line())
        myLine.Layer = "0";
        myLine.StartPoint = new Point3D(0, 0, 0);
        myLine.EndPoint = new Point3D(100, 100, 0);

.Net SDS Api


I'd be very interested in trying out your sds api. I've been using vb6, .net & COM interop to build addins, and I'd love to be able to access some of the extra functionality in the icad api (and finally ditch vb6 and COM!).

benqsmith (at) yahoo (dot) com

I haven’t forgotten about you. I ran into issues with forms not working correctly with certain functions, such as GetPoint(). Once I get this solved I will let you all know. I am also considering making this an open source project and posting the source on one of the open source sites.

Hi Danielm,

I am new to Intellicad.
When i tried to use the C# code in my dotnet 2005 ide, at CommandMethod i am getting error.

Code: Select all

using System;
using System.Collections.Generic;
using System.Text;
using IntelliCAD;

namespace ClassLibrary1
    public class Class1
        public static void Test1()
                IntelliCAD.Application application =
                IntelliCAD.Document document = application.ActiveDocument;
Please suggess me which reference i need to add to resolve this problem.



After some research, i found the command method [Lispfunction] will comes with acdmg.dll. If we dont have installed Autocad 2010 product, can't use [LispFunftion].

Is there any related command method is there in Intellicad namespace.

Thanks in advance,

Sorry, I wrote that module quite a long time ago, I haven't been keeping it up to date as there didn;t seem to be much interest. About the only thing I am maintaining in SDS is SQLite for autolisp.

Now we have Icad7, many things are changing with the APIs. We are trying to write applications in C#.
How can I make the call of C# functions from the command line?

CommandMethod is not accepted when using the Intellicad Object library.

Are there other dlls necessary?
Any idea where I could get some more information?


Are you talking about SDS? Or other environment?
You can write C# applications through different ways. I suppose it will all depend on your particular needs. The developers reference in the program's help should give you a light of the available options.