CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 2020 开发者帮助

CancelSheetSetNotification 方法 (ActiveX/ATO)

2024-5-18 18:24| 发布者: admin| 查看: 14| 评论: 0|原作者: admin|来自: AutoCAD

CancelSheetSetNotification 方法 (ActiveX/ATO)

注销以前注册的工作表集回调通知处理程序。

命名空间:传输塔利布

程序集: acETransmit20.tlb

签名

VB.NET:

object.cancelSheetSetNotification pHandler

C#:

object.cancelSheetSetNotification(pHandler);
对象

类型:TransmittalOperation

此方法应用到的对象。

p处理程序

访问:仅输入

类型:ITransmittalSheetSetNotification 对象

表示自定义类的接口,该自定义类为应用程序实现工作表集通知。

返回值 (RetVal)

无返回值。

言论

没有其他评论。

发行信息

释放:AutoCAD 2005 及更高版本

历史

  • 该界面已与 AutoCAD 2010 版库中的界面合并。ITransmittalOperation2ITransmittalOperation
  • 该方法是在 AutoCAD 2005 版本的库中引入的。cancelDatabaseNotificationITransmittalOperation2

例子

VB.NET:

' Notification handlers
Private Shared g_dbHandler As New MyTransDbNotifier
Private Shared g_fileHandler As New MyTransFileNotifier
Private Shared g_ssmHandler As New MyTransSSMNotifier

' Custom command that subscribes to eTransmit notifications
' Works with the transmittal API and ETRANSMIT/ARCHIVE commands
<CommandMethod("ETNotificationsStart")> _
Public Shared Sub ETNotificationsStart()
    ' Add the handlers
    g_tro.subscribeToAddFileNotification(g_fileHandler)
    g_tro.subscribeDatabaseNotification(g_dbHandler)
    g_tro.subscribeSheetSetNotification(g_ssmHandler)
End Sub

' Custom command that unsubscribes to eTransmit notifications
' Works with the transmittal API and ETRANSMIT/ARCHIVE commands
<CommandMethod("ETNotificationsEnd")> _
Public Shared Sub ETNotificationsEnd()
    ' Remove the handlers
    g_tro.cancelSubscriptionToAddFileNotification(g_fileHandler)
    g_tro.cancelDatabaseNotification(g_dbHandler)
    g_tro.cancelSheetSetNotification(g_ssmHandler)
End Sub

C#:

// Notification handlers
private static MyTransDbNotifier g_dbHandler = new MyTransDbNotifier();
private static MyTransFileNotifier g_fileHandler = new MyTransFileNotifier();
private static MyTransSSMNotifier g_ssmHandler = new MyTransSSMNotifier();

// Custom command that subscribes to eTransmit notifications
// Works with the transmittal API and ETRANSMIT/ARCHIVE commands
[CommandMethod("ETNotificationsStart")]
public static void ETNotificationsStart()
{
    // Add the handlers
    g_tro.subscribeToAddFileNotification(g_fileHandler);
    g_tro.subscribeDatabaseNotification(g_dbHandler);
    g_tro.subscribeSheetSetNotification(g_ssmHandler);
}

// Custom command that unsubscribes to eTransmit notifications
// Works with the transmittal API and ETRANSMIT/ARCHIVE commands
[CommandMethod("ETNotificationsEnd")]
public static void ETNotificationsEnd()
{
    // Remove the handlers
    g_tro.cancelSubscriptionToAddFileNotification(g_fileHandler);
    g_tro.cancelDatabaseNotification(g_dbHandler);
    g_tro.cancelSheetSetNotification(g_ssmHandler);
}

路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )

GMT+8, 2024-6-27 15:51

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部