I haven't tried this, so can't say if it will work, or not:
Try setting the HostApplicationServices.WorkingDatabase to the database of the
document you want to check, then get the value of DWGTITLED, and finally, make
sure to restore the previous value of WorkingDatabase to what it was before you
changed it.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6399782@discussion.autodesk.com...
After doing a bit of searching on this forum, I learned that you can use the
DWGTITLED system variable to determine if a drawing is new or has been
previously saved. My current understanding is that you can only use this system
variable to check whether the current active document is new or not.
Is it possible to check if a non-active document is new?