.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Open Autocad Document and Print newbie
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
51 Views, 0 Replies
08-17-2005 01:42 PM
Hello,
I am designing an application that will open AutoCAD documents and then print it to some printer. The application will be built on vs 2003 , .net 1.1 sp 1 AutoCAD 2006.
This is my first time so any pointers on how to do this will be very helpful to me.
I tried couple of items from web and I am getting SystemIOFileNotFound exception. when I added AutoCAD 2006 to my path my system froze completely. Here is the sample code that I am using.
Thanks a lot
Kevin
I have acdbmgd.dll and acmgd.dll in my references
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
public class autocadtoprinter
public sub openfile()
Dim file As Autodesk.AutoCAD.ApplicationServices.Document
try
file = Autodesk.AutoCAD.ApplicationServices.Application.D ocumentManager.Open("D:\Somefile.dwg", True)
catch exp as exception
throw exp
end try
end sub
end class
I am designing an application that will open AutoCAD documents and then print it to some printer. The application will be built on vs 2003 , .net 1.1 sp 1 AutoCAD 2006.
This is my first time so any pointers on how to do this will be very helpful to me.
I tried couple of items from web and I am getting SystemIOFileNotFound exception. when I added AutoCAD 2006 to my path my system froze completely. Here is the sample code that I am using.
Thanks a lot
Kevin
I have acdbmgd.dll and acmgd.dll in my references
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
public class autocadtoprinter
public sub openfile()
Dim file As Autodesk.AutoCAD.ApplicationServices.Document
try
file = Autodesk.AutoCAD.ApplicationServices.Application.D
catch exp as exception
throw exp
end try
end sub
end class
