.NET

Reply
*John Laidler
Message 1 of 5 (183 Views)

Reference required to assembly.... error

183 Views, 4 Replies
09-15-2005 06:26 AM
I have the following references loaded....

AutoCAD 2006 Type Library 1.1
AutoCAD/ObjectDBX Common 16.0 Type Library

But my 'common' will not show up, for example this line of code is not
recognized.

Dim Thisdrawing As Autodesk.AutoCAD.Interop.AcadDocument



Any suggestions ??
*Mike Tuersley
Message 2 of 5 (183 Views)

Re: Reference required to assembly.... error

09-15-2005 08:00 PM in reply to: *John Laidler
Look at your object browser and it'll tell you that AcadDocument is off of
Interop.Common or use:

Imports Autodesk.AutoCAD.Interop
Imports Autodesk.AutoCAD.Interop.Common

Then you can use:

Dim Thisdrawing As AcadDocument

-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
*John Laidler
Message 3 of 5 (183 Views)

Re: Reference required to assembly.... error

09-16-2005 06:06 AM in reply to: *John Laidler
If AcadDocument is off, how do you get it back on ??


"Mike Tuersley" wrote in message
news:4958311@discussion.autodesk.com...
Look at your object browser and it'll tell you that AcadDocument is off of
Interop.Common or use:

Imports Autodesk.AutoCAD.Interop
Imports Autodesk.AutoCAD.Interop.Common

Then you can use:

Dim Thisdrawing As AcadDocument

-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
*Mike Tuersley
Message 4 of 5 (183 Views)

Re: Reference required to assembly.... error

09-16-2005 07:56 AM in reply to: *John Laidler
No =) "OFF OF" meaning you get to AcadDocument by walking the tree
Autodesk.AutoCAD.Interop.Common.AcadDocument not the way you were. You were
missing the .COMMON

-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
*John Laidler
Message 5 of 5 (183 Views)

Re: Reference required to assembly.... error

09-16-2005 08:19 AM in reply to: *John Laidler
I got it fixed. Just did a repair of my Mechanical Desktop, all is good.

"Mike Tuersley" wrote in message
news:4958311@discussion.autodesk.com...
Look at your object browser and it'll tell you that AcadDocument is off of
Interop.Common or use:

Imports Autodesk.AutoCAD.Interop
Imports Autodesk.AutoCAD.Interop.Common

Then you can use:

Dim Thisdrawing As AcadDocument

-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...

You are not logged in.

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

Announcements
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