Here is an ample of what I have so far. I will share once I have more done
using System;
using System.Collections;
using System.Runtime.InteropServices;
using DWM.Cad.DatabaseServices;
using DWM.Cad.RuntimeServices;
using DWM.Cad.Geometry;
using ICad = IntelliCAD.Application;
namespace testerclass
{
public class Test
{
[CommandMethod("ln1")]//dans line class
public static void tmp()
{
Line ln = new Line();
ln.Layer = "0";
ln.StartPoint = new Point3D(0, 0, 0);
ln.EndPoint = new Point3D(100, 100, 0);
ln.Update();
}
[CommandMethod("ln2")]//wrapped entmake
public static void tmp77()
{
ResultBuffer Ln = new ResultBuffer();
Ln.Add(new TypedValue(0, "LINE"));
Ln.Add(new TypedValue(8, "0"));
Ln.Add(new TypedValue(10, new Point3D(0, 0, 0)));
Ln.Add(new TypedValue(11, new Point3D(100, 100, 0)));
Sds.entMake(Ln);
}
[CommandMethod("ln3")]//Com Ugh!
public static void tmp1()
{
ICComInterface com = new ICComInterface();
ICad app = (ICad)com.getComAppliation();
IntelliCAD.Document doc = app.ActiveDocument;
IntelliCAD.Point pt1 = new IntelliCAD.Point();
IntelliCAD.Point pt2 = new IntelliCAD.Point();
pt1.x = 100; pt1.y = 100; pt1.z = 0;
pt2.x = 0; pt2.y = 0; pt2.z = 0;
IntelliCAD.Line myLine = doc.ModelSpace.AddLine(pt1, pt2);
myLine.Update();
}
}
}