.NET

.NET

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

Reference required to assembly.... error

187 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 (187 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 (187 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 (187 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 (187 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...
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.