Message 1 of 4
Error "Operation is not valid due to the current state of the object"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I am getting the "Operation is not valid due to the current state of the object" when doing the following
dim db as New Database (False, True)
db.ReadDwgFile(myfilename,FileOpenMode.OpenforReadAndAllShare,False,Nothing)
db.ResolveXrefs(True,False)
dim tm as Transaction = db.TransactionManager.StartTransaction()
the next line is the one that crashes
dim myDoc as Document = DocumentManager.GetDocument(db)
the line works with the working database, but I need it to work with an unopenned drawing. Is it possible?
Thanks in advance.
Raul
I am getting the "Operation is not valid due to the current state of the object" when doing the following
dim db as New Database (False, True)
db.ReadDwgFile(myfilename,FileOpenMode.OpenforReadAndAllShare,False,Nothing)
db.ResolveXrefs(True,False)
dim tm as Transaction = db.TransactionManager.StartTransaction()
the next line is the one that crashes
dim myDoc as Document = DocumentManager.GetDocument(db)
the line works with the working database, but I need it to work with an unopenned drawing. Is it possible?
Thanks in advance.
Raul