ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

File -Open and File-New events trapping

2 REPLIES 2
Reply
Message 1 of 3
PrashantSL
311 Views, 2 Replies

File -Open and File-New events trapping

Hi ,

Is there any way to trap the File->Open and File->New events when user clicks on File Menu in ACAD?
I want to perform some operations on the file which are opened locally.(means files already saved on disk being opened from File->Open).
I am using initialDwgFileOpenComplete() event. But I can not differentiate whether file is new or being opened locally.

Anybody has any information about it?

Thanks in advance!

-Prashant
2 REPLIES 2
Message 2 of 3
ggr
Contributor
in reply to: PrashantSL

Hi Prashant,

Get the TDUPDATE variabele: AcDbDatabase::tdupdate().
TDUPDATE Stores the local time and date of the last update/save.

Possible wat to get to the variable:
AcApDocManagerReactor::documentCreated(AcApDocument* pDocCreating)
AcApDocument::database()
AcDbDatabase::tdupdate()

Gertwin
Message 3 of 3
PrashantSL
in reply to: PrashantSL

Hi ggr,

Thanks for your help!
Can you please elaborate the way you suggested a bit more?

Thanks,

Prashant.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost