Message 1 of 8
Not applicable
01-05-2012
02:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
my code is:
Dim AcadDoc As Document = Application.DocumentManager.MdiActiveDocument
Dim CurDb As Database = AcadDoc.Database
Dim lt As LayerTable = DirectCast(tr.GetObject(CurDb.LayerTableId, OpenMode.ForRead), LayerTable)if fails on last line with error:-
Operation is not valid due to the current state of the object.
This works elsewhere.
Any ideas as to where to start looking?
Solved! Go to Solution.