Since I'm still starting I think I will contiue to post questions here, so that others will have a really good place to start.
Here is my question. I have followed some examples (Hello world, kind). I'm using SharpDelevop 1.1. I opened a new project, select C# categorie, the selected Class Library, then added the References to Autocad (Autodesk.AutoCAD.Interop and Autodesk.AutoCAD.Interop.Common). Typed in the code below per the example on Cadalyst. But it errors with the quote below the code.
Any help/insight is greatly appreciated. Thanks again.
/*
* Created by SharpDevelop.
* User: a0kcdzz
* Date: 7/20/2006
* Time: 10:29 AM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Runtime.InteropServices;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.ApplicationServices;
using acadApp = Autodesk.AutoCAD.ApplicationServices.Application;
public class HelloWorld
{
[Autodesk.AutoCAD.Runtime.CommandMethod("TestHello")]
public void HelloCommand()
{
acadApp.DocumentManager.MdiActiveDocument.Editor.WriteMessage(_"Hello world from C#!!");
acadApp.UpdateScreen();
}
}
------ Build started: Project: Test Configuration: Debug ------
Performing main compilation...
MyClass.cs(11,24): error CS0234: The type or namespace name 'Runtime' does not exist in the class or namespace 'Autodesk.AutoCAD' (are you missing an assembly reference?)
MyClass.cs(12,24): error CS0234: The type or namespace name 'ApplicationServices' does not exist in the class or namespace 'Autodesk.AutoCAD' (are you missing an assembly reference?)
MyClass.cs(13,34): error CS0234: The type or namespace name 'ApplicationServices' does not exist in the class or namespace 'Autodesk.AutoCAD' (are you missing an assembly reference?)
MyClass.cs(17,21): error CS0234: The type or namespace name 'Runtime' does not exist in the class or namespace 'Autodesk.AutoCAD' (are you missing an assembly reference?)
Build complete -- 4 errors, 0 warnings