AutoCAD 2010/2011/2012

Posts: 4
Registered: ‎05-02-2012
Message 1 of 2 (232 Views)

How to use Document class ? their any versioning issue ?

232 Views, 1 Replies
05-07-2012 07:28 AM

sing 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;
//using Autodesk.AutoCAD.BoundaryRepresentation.BrepEntity;
using Autodesk.AutoCAD.BoundaryRepresentation;

using BrFace = Autodesk.AutoCAD.BoundaryRepresentation.Face;

namespace application
class Program
static void Main(string[] args)

Document acDoc = Application.DocumentManager.MdiActiveDocument;




Working Environment:-

  1. Visual Studio 2010
  2. AutoCAD 2011 
  3. 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.DocumentCollection'

from assembly 'acmgd, Version=, Culture=neutral, PublicKeyToken=null' does not have an implementation ."










Posts: 604
Registered: ‎05-09-2008
Message 2 of 2 (189 Views)

Re: How to use Document class ? their any versioning issue ?

05-07-2012 07:38 PM in reply to: shamkumar

We moved your post to the .NET forum where there is likely to be more active feedback on the topic.

Customize Your Settings | Search Tips | FAQs | Forum Feedback

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community

Connect with AutoCAD