Author Topic: How can i view an ACAD file using DOTNET  (Read 2703 times)

0 Members and 1 Guest are viewing this topic.

Offline jkarthick89

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
  • Gender: Male
    • prefered language: C
    • Prog expertise: Good
    • View Profile
  • Twitter: @jkarthick89
How can i view an ACAD file using DOTNET
« on: February 10, 2011, 07:53:24 AM »

target audience:{intermediate}

hi,

I'm just a beginner in developing ACAD applications with my proficient DOTNET

I have started it with adding DLL with my application. First, i added ACDBMGD.DLL in my project. It contains many members like(Point2d,Point3d...etc)
As a first step i like to draw an line using my application...I used the below code...(It was in C#)

Point2d p1=new Point2d(0,0);
Point2d p2=new Point2d(35,30);
line s=new line(p1,p2);

This above code sounds like "FILENOTFOUND EXCEPTION"

Am i need to load ACAD file anywhere?? Actually, i did it in my application startup path...but still i'm facing this....Am looking for your suggestions...Please

Offline (gile)

  • C#
  • *
  • Posts: 87
  • Karma: +8/-0
  • Gender: Male
    • prefered language: F
    • Prog expertise: Good
    • View Profile
Re: How can i view an ACAD file using DOTNET
« Reply #1 on: February 10, 2011, 11:47:08 AM »
Hi,

You have to to reference at least acdbmgd.dll and acmgd.dll
Have a look at:
http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer%27s%20Guide/index.html


Offline Kerry

  • C#
  • *
  • Posts: 6
  • Karma: +2/-0
  • Gender: Male
    • prefered language: C
    • Prog expertise: Good
    • View Profile
Re: How can i view an ACAD file using DOTNET
« Reply #2 on: February 12, 2011, 03:16:14 AM »

target audience:{intermediate}

hi,

Point2d p1=new Point2d(0,0);
Point2d p2=new Point2d(35,30);
line s=new line(p1,p2);

This above code sounds like "FILENOTFOUND EXCEPTION"


What are you developing with ??
The IDE should tell you that line is not recognised

The Class is Line.
class keyThumper<T> : Lazy<T>