Is there any ways to access Audit property when DocumentOpeningEvent is triggered?
I would like to collect information if the model is opened in Audit mode by users.
For similar behavior, I'm wondering if there's any ways to get SaveAsOptions object when DocumentSavingAs event is triggered.
Please let me know.
Thanks,
Dear Jinsol Kim,
Thank you for your query.
I assume you are referring to the OpenOptions.Audit property used to specify whether to expand all elements to check for corruption when opening a document.
This property is only used as an input argument when your add-in is actively opening a document.
This property will not enable you to determine whether the current model was opened for audit, neither in the DocumentOpening event handler nor anywhere else.
I am not aware of any method at all for determining this.
I'll ask the development team whether they can suggest anything and let you know what I find out.
I hope this helps.
Best regards,
Jeremy
following up on this, it would still be nice to see if Audit was checked on open. Other settings like compact on syncs are available....
If this is important for you, please submit a wish for it in the Revit Idea Station.
😞 ill just keep scraping my users journal files to find out when they audit...