Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I need to prevent some files to be opened, if fullpath match a pattern. Like "*ToolBox*"
I tried to intercept the OnOpenDocument
and set HandlingCode = HandlingCodeEnum.kEventCanceled;
But Inventor still open the file.
public void AppEvent_OnOpenDocument_Handler(_Document DocumentObject, string FullDocumentName, EventTimingEnum BeforeOrAfter, NameValueMap Context, out HandlingCodeEnum HandlingCode)
{
Debug.Print("OnOpenDocument");
HandlingCode = HandlingCodeEnum.kEventCanceled;
How is it possible to avoid the open of file,
for example if the path match a pattern?
Thanks for helping.
regards
Massimo
Solved! Go to Solution.