Message 1 of 5
Object Library Feature Not Supported error

Not applicable
09-29-2004
09:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?
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?