ConvertDatabase 方法 (ActiveX/ATO)
在创建传递包期间转换图形文件时触发。 支持的平台:仅限 Windows 命名空间:传输塔利布 程序集: acETransmit20.tlb 签名VB.NET: Friend Class custom_class_name Implements TransmittalDatabaseNotificationHandler Public Function convertDatabase(pDatabase As Object, _ pFile As TransmittalFile, _ pTransmit As TransmittalOperation) _ As Integer _ Implements ITransmittalDatabaseNotificationHandler.convertDatabase ... End Function End Class C#: internal class custom_class_name : TransmittalDatabaseNotificationHandler { public int convertDatabase(object pDatabase, TransmittalFile pFile, TransmittalOperation pTransmit) { ... return RetVal; } }
返回值 (RetVal)类型:整数 值指示数据库是否被修改。
言论没有其他评论。 发行信息释放:AutoCAD 2005 及更高版本 例子VB.NET: ' Custom class used to monitor the processing of a drawing Friend Class MyTransDbNotifier Implements TransmittalDatabaseNotificationHandler Public Function convertDatabase(pDatabase As Object, _ pFile As TRANSMITTALLib.TransmittalFile, _ pTransmit As TRANSMITTALLib.TransmittalOperation) _ As Integer _ Implements TRANSMITTALLib. _ ITransmittalDatabaseNotificationHandler.convertDatabase Application.DocumentManager.MdiActiveDocument.Editor. _ WriteMessage(Environment.NewLine & "Database converting: " & 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 convertDatabase(object pDatabase, TRANSMITTALLib.TransmittalFile pFile, TRANSMITTALLib.TransmittalOperation pTransmit) { Application.DocumentManager.MdiActiveDocument.Editor. WriteMessage(Environment.NewLine + "Database converting: " + pFile.sourcePath); return 1; } } 相关参考 |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2024-12-15 11:40
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.