AcadNETwork

NET start => .NET newbies => Topic started by: jkarthick89 on February 10, 2011, 07:53:24 AM

Title: How can i view an ACAD file using DOTNET
Post by: jkarthick89 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
Title: Re: How can i view an ACAD file using DOTNET
Post by: (gile) 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

Title: Re: How can i view an ACAD file using DOTNET
Post by: Kerry 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.