Object Library Feature Not Supported error

Object Library Feature Not Supported error

Anonymous
Not applicable
531 Views
4 Replies
Message 1 of 5

Object Library Feature Not Supported error

Anonymous
Not applicable
In a piece of code that I did in recently I get an "Object Library Feature Not Supported" error. The snippet of code that doesn't work is as follows:

Public MySub()
Dim blockref As AcadEntity
For Each blockref In ThisDrawing.PaperSpace
Debug.Print TypeName(blockref)
Next
End

The function that fails seems to be the TypeName function, which should work with no problems at all but just fails. To complicate things I wrote this in ADT2004 and now have ADT2005 loaded onto my computer as well.

Strangely it runs without a problem in 2005, but the majority of my colleagues are still on 2004 so it is an issue for them, so it seems the installation of 2005 has changed something, which 2004 can't handle.

The only solution I can think of is to run a version that has been done on a 2004 only machine and keep it pure, with a seperate version to run for 2005.

Anyone have any thoughts on this?
0 Likes
532 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Ahah! One answer seems to be to load the AutoCAD/ObjectDBX Common 16 Type Library, though I've never had to do this before. After doing so however it seems to work fine.

Is there any reason for having to do this, as I would expect that this would not normally be needed for a bit of coding, unless access to Object DBX functinality was required?
0 Likes
Message 3 of 5

Anonymous
Not applicable
I'm getting the same error on some thing that I have been running for years without a problem. I noticed that it just started since loading Civil 3D 2005 on my PC yesterday. Did you just install any new versions of AutoCAD?
0 Likes
Message 4 of 5

Anonymous
Not applicable
I recently upgraded to 2005 products. I began experiencing this same problem with ADT and Mechanical. Can you provide some direction on how to load the AutoCAD/ObjectDBX Common 16 library? I have never loaded a library.
0 Likes
Message 5 of 5

Anonymous
Not applicable
You can simply add a reference in your VBA project to the AutoCAD/ObjectDBX Common 16 library. It just worked for me.
It just fixed a problem I was having. I created a VBA macro in 2005 and it would NOT run in 2004. BY adding this reference it now works in BOTH.
0 Likes