So what you are saying is that there a no straight forward .NET method to
get that variable, or any other variable.
But i has to go through Active X.
Have i understod you right?
/M
"Tony Tanzillo" wrote in message
news:4141cc19_3@newsprd01...
> "Mike Tuersley" wrote in message
> news:1bj7qgsdabb8q$.7f29jo18kxsh.dlg@40tude.net...
>>> FileName doesn't do it.
>>> It contains the name of the dwt-file before it has been saved.
>> Then that can be your test. If it is the dwt name then obviously it
>> hasn't
>> been saved yet.
>
> DWGTITLED indicates if a new drawing was saved. Testing
> the filename doesn't work because a user can open a .DWT.
>
> He can get the Document object and from it, get the
> AcadDocument ActiveX object, and then use the GetVariable
> method.
>
> The managed wrapper API for AutoCAD is a work in progress,
> not done, and using it without the ActiveX API is unrealistic.
>
> FWIW, in ObjectARX, this requires accessing the MFC
> CDocument object for the open document, so there is
> likely no equivalent in the managed API.
>
> --
> http://www.caddzone.com
>
> AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005
> http://www.acadxtabs.com
>
>