.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
error in document object creation
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
using System;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Runtime.InteropServices;
using Autodesk.AutoCAD.Interop.Common;
using Autodesk.AutoCAD.Interop;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.EditorInput;
namespace application
{
class Program
{
static void Main(string[] args)
{
Document acDoc = Application.DocumentManager.MdiActiveDocument;
}
}
Working Environment:-
- Visual Studio 2010
- AutoCAD 2011
- C#
After run following error will occure
"
An unhandled exception of type 'System.TypeLoadException' occurred in mscorlib.dll
Additional information: Method 'CopyTo' in type 'Autodesk.AutoCAD.ApplicationServices.DocumentColl
from assembly 'acmgd, Version=18.1.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation ."
Re: error in document object creation
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Re: error in document object creation
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Although you can license the RealDWG SDK to add DWG capability to your own app. Brief explanation here - http://adndevblog.typepad.com/autocad/2012/03/read
Stephen Preston
Autodesk Developer Network



