TheSwamp
Code Red => .NET => Topic started by: flowerrobot on September 16, 2013, 11:31:10 PM
-
Hi,
I have a process that downgrade the document to read only, then upgrade the document after a procedure is complete.
The issue is the windows text of the main AutoCAD application does not update, This causes users to think the files is read only.
I have tried to do this, however not been able to do it correctly via the Document.windows call, which updates the window, However files are alway maximised so not seen.
Thanks & Regards
Flower
Private Document As Document
Document.Database.SaveAs(Application.DocumentManager.MdiActiveDocument.Name, True, DwgVersion.AC1024, Nothing)
Document.DowngradeDocOpen(False)
'DO stuff
Document.UpgradeDocOpen()
Document.Window.Text = IO.Path.GetFileName(Document.Name)