DWG开放事件处理程序之前
嗨,有谁知道在AutoCAD检查外部参照状态之前将触发的事件(如果存在)?我想在提示输入缺少的外部参照的位置之前进行一些自定义外部参照解析。我尝试了以下事件,但在出现提示之前没有触发任何事件。AddHandler Application.DocumentManager.DocumentCreated, AddressOf Application_DocumentCreated。AddHandler Application.DocumentManager.DocumentCreateStarted, AddressOf Application_DocumentCreateStarted。
AddHandler Application.DocumentManager.DocumentToBeActivated, AddressOf Application_DocumentToBeActivated。
AddHandler Application.DocumentManager.DocumentBecameCurrent, AddressOf Application_DocumentBecameCurrent。
AddHandler Application.DocumentManager.CurrentDocument.BeginDwgOpen, AddressOf Application_BeginDwgOpen。
AddHandler Application.DocumentManager.CurrentDocument.EndDwgOpen, AddressOf Application_EndDwgOpen谢谢,泰德。
**** Hidden Message ***** 让它按预期工作,必须使用两个事件处理程序。首先这个...AddHandler Application.DocumentManager.DocumentCreateStarted, AddressOf Application_DocumentCreateStarted...然后。,。Private Sub Application_DocumentCreateStarted(sender As Object, e As DocumentCollectionEventArgs)。
AddHandler e.Document.BeginDwgOpen, AddressOf Document_BeginDwgOpen。
结束子。
页:
[1]