在处理数据库之前触发。 支持的平台:仅窗口 Namespace:传输利布 组装:acETransmit20.tlb 签名VB.NET: Friend Class custom_class_name Implements TransmittalDatabaseNotificationHandler Public Function preDatabaseProcessing(pDatabase As Object, _ pFile As TransmittalFile, _ pTransmit As TransmittalOperation) _ As Integer _ Implements ITransmittalDatabaseNotificationHandler.preDatabaseProcessing ... End Function End Class C#: internal class custom_class_name : TransmittalDatabaseNotificationHandler { public int preDatabaseProcessing(object pDatabase, TransmittalFile pFile, TransmittalOperation pTransmit) { ... return RetVal; } } 返回值(RetVal)类型:长
言论没有额外的评论。 发布信息释放:AutoCAD 2005 及更高版本 ExamplesVB.NET: ' Custom class used to monitor the processing of a drawing Friend Class MyTransDbNotifier Implements TransmittalDatabaseNotificationHandler Public Function preDatabaseProcessing(pDatabase As Object, _ pFile As TRANSMITTALLib.TransmittalFile, _ pTransmit As TRANSMITTALLib.TransmittalOperation) _ As Integer _ Implements TRANSMITTALLib. _ ITransmittalDatabaseNotificationHandler.preDatabaseProcessing Application.DocumentManager.MdiActiveDocument.Editor. _ WriteMessage(Environment.NewLine & "Database preprocessing: " & pFile.sourcePath) Return 1 End Function End Class C#: // Custom class used to monitor the processing of a drawing internal class MyTransDbNotifier : TransmittalDatabaseNotificationHandler { public int preDatabaseProcessing(object pDatabase, TRANSMITTALLib.TransmittalFile pFile, TRANSMITTALLib.TransmittalOperation pTransmit) { Application.DocumentManager.MdiActiveDocument.Editor. WriteMessage(Environment.NewLine + "Database preprocessing: " + pFile.sourcePath); return 1; } } |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:29
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.