PDA

View Full Version : Point2D missing directive or assembly reference?



KevinBarnett
2006-08-17, 10:02 AM
Greetings,

What have I missed here? I will be needing to utilise 2d and 3d point types.
The code below results in error:
Type or namespace name Point2D could not be found - missing directive or assembly reference?

Thx in advance...
(I hope Bobby or someone out there is busy writing a book for us)



using System;
using System.Collections;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.GraphicsInterface;
using acadApp = Autodesk.AutoCAD.ApplicationServices.Application;
namespace MyStuff

{
public class SelectLines
{

public static void Main()
{
System.Console.WriteLine("Hello, world!");
}
[CommandMethod("BigPLPAng")]
public void SelectSetExample()
{
Database DB = acadApp.DocumentManager.MdiActiveDocument.Database;
Autodesk.AutoCAD.DatabaseServices.TransactionManager TM = DB.TransactionManager;
Transaction TR = TM.StartTransaction();
Editor currentEditor = acadApp.DocumentManager.MdiActiveDocument.Editor;

try
{

//...code

Autodesk.AutoCAD.Geometry.Point2D BPnt = new Point2d(0,0);
Point2D NPnt = new Point2d(0,0);


[ Moderator Action = ON ] Why does my CODE not format properly? (http://forums.augi.com/misc.php?do=bbcode#code) [ Moderator Action = OFF ]

dmarcotte4
2006-08-17, 02:17 PM
Remember c# is case sensitive change your Point2D to Point2d

Dan

KevinBarnett
2006-08-18, 05:20 AM
Thanks... lazy habits from vb days, still fresh in c#.
Why is it case sensitive - is there any advantage?