将新文件添加到传递集时触发。 支持的平台:仅窗口 Namespace:传输利布 组装:acETransmit20.tlb 签名VB.NET: Friend Class custom_class_name Implements TransmittalAddFileNotificationHandler Public Sub addFileNotificationHandler(pFile, pTransmit) _ Implements TRANSMITTALLib.ITransmittalAddFileNotificationHandler.addFileNotificationHandler ... End Sub End Class C#: internal class custom_class_name : TransmittalAddFileNotificationHandler { public void addFileNotificationHandler(pFile, pTransmit) { ... } } 返回值(RetVal)无返回值。 言论没有额外的评论。 发布信息释放:AutoCAD 2004 及更高版本 例子VB.NET: ' Custom class used to monitor files being added to the transmittal package Friend Class MyTransFileNotifier Implements TransmittalAddFileNotificationHandler ' Used to get a notification when a drawing or file is added to the transmittal package Public Sub addFileNotificationHandler(pFile As TRANSMITTALLib.TransmittalFile, _ pTransmit As TRANSMITTALLib.TransmittalOperation) _ Implements TRANSMITTALLib. _ ITransmittalAddFileNotificationHandler.addFileNotificationHandler Application.DocumentManager.MdiActiveDocument.Editor. _ WriteMessage(Environment.NewLine & _ "File added to transmittal package: " & pFile.sourcePath) End Sub End Class C#: // Custom class used to monitor files being added to the transmittal package internal class MyTransFileNotifier : TransmittalAddFileNotificationHandler { // Used to get a notification when a drawing or file is added to the transmittal package public void addFileNotificationHandler(TRANSMITTALLib.TransmittalFile pFile, TRANSMITTALLib.TransmittalOperation pTransmit) { Application.DocumentManager.MdiActiveDocument.Editor. WriteMessage(Environment.NewLine + "File added to transmittal package: " + pFile.sourcePath); } } |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:04
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.