You are using the "Express", I take it?
Professional Version (I'm a student = free stuff
)
Depending on your AutoCAD version (2011 and earlier), Visual Studio 2008 *might* be the better choice. VS2010 is a very good argument against early adoption.
I'm using ACAD2010 (student version, but I doubt that matters too much in this respect). So are you saying that VS2010 restricts what I can do in .NET, or that I simply cannot use it? I'm confused in how the version of the editor would play a part in the programming itself - but perhaps this is a feature of compiled code.
On another note, I've had another play with VS2010 using the C# sample code from
here. I realise that I don't have the background knowledge of C# as yet, but I wanted to see if I could run some code to ensure that I have everything set up correctly (I wouldn't want to hinder myself before I've even started).
Now, I have opened VS2010 and started a New Project with type: C# Class Library (is this correct, or should I be choosing a console application?) - I have then pasted the C# code from that link to the editor window.
In the Solution Explorer, I went to 'References', 'Add References' and added AcDbMgd.dll and AcMgd.dll as described in the Dev Help (would I have to add these to every project I create?). These removed the majority of the 'warnings' I was receiving in the editor window regarding statements declaring the namespace, such as:
using Autodesk.AutoCAD.Runtime;
However I still receive errors on the following lines:
public static [color=red]void[/color] AddLine()
acBlkTblRec = acTrans.GetObject(acBlkTbl[BlockTableRecord.[color=red]ModelSpace[/color]], OpenMode.ForWrite) as BlockTableRecord;
Line acLine = new [color=red]Line[/color](new [color=red]Point3d[/color](5, 5, 0), new [color=red]Point3d[/color](12, 3, 0));
Are these errors in the code or something I have not set up correctly? As I say, I don't have knowledge of C# or how to manipulate AutoCAD with it, but I wanted to ensure I have my environment set up correctly to save trouble further down the line.
Thanks for your help guys, appreciated.
Lee