Yea, but that doesn't matter if you use
this (even simpler) test:
bool IsNewDrawing(Document doc)
{
return doc.Name == doc.Database.Filename;
}
Only in a new, unsaved drawing should these
two properties have different values.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
"Matt"
wrote in message news:5517603@discussion.autodesk.com...
You can use a dwg as a template, can not assume the ending to be "dwt" for
new drawings.
/Matt
"Tony Tanzillo" wrote in message
news:5516776@discussion.autodesk.com...
If the OriginalFilename property of the Database
ends with .DWT or is an empty string, that should
indicate it is a new document.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
wrote in message news:5516699@discussion.autodesk.com...
Hi, there!
I have a specific problem regarding the DocumentCreated reactor, that is, I
need to distinguish between a drawing being NEWLY CREATED or OPENED. Is
there any indication for either case?
After a lot of trying and searching, I'm quite desparate by now 😞
Is there a sensible way for accomplishing this using DocumentCreated? Did I
overlook any possibilities?
Thanks for any help!
Greetings,
AlfredG