CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 2024 开发者帮助

GetTransmittalInfoInterface 方法 (ActiveX/ATO)

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

GetTransmittalInfoInterface 方法 (ActiveX/ATO)

返回用于存储用于创建传递包的设置的信息对象。

支持的平台:仅限 Windows

命名空间:传输塔利布

程序集: acETransmit20.tlb

签名

VB.NET:

RetVal = object.getTransmittalInfoInterface()

C#:

RetVal = object.getTransmittalInfoInterface();
对象

类型:TransmittalOperation 对象

此方法应用到的对象。

返回值 (RetVal)

类型:TransmittalInfo 对象

传递集的信息对象。

言论

没有其他评论。

发行信息

释放:AutoCAD 2005 及更高版本

历史

  • 和 接口已与 AutoCAD 2010 版库中的接口合并。ITransmittalOperation2ITransmittalOperation3ITransmittalOperation
  • 该方法已使用 AutoCAD 2008 版库中的界面进行了修改。该方法返回了一个对象。getTransmittalInfoInterfaceITransmittalOperation3ITransmittalInfo2
  • 该方法是在 AutoCAD 2005 版本的库中引入的。getTransmittalInfoInterfaceITransmittalOperation2

例子

VB.NET:

' Custom command to create a transmittal package with a drawing file
<CommandMethod("eTransmitDWGFile")> _
Public Shared Sub eTransmitDWGFile()

    ' Create a transmittal operation
    Dim tro As TransmittalOperation = New TransmittalOperation()

    ' Setup the transmittal behavior
    Dim ti As TransmittalInfo = _
        TransInfo(tro.getTransmittalInfoInterface(), "C:\Users\Public\TransmittalAPITest\")

    ' Add a DWG file
    Dim tf As TransmittalFile = Nothing
    tro.addDrawingFile("C:\AutoCAD\Sample\Sheet Sets\Architectural\A-02.dwg", tf)

    ' Create the transmittal package
    ' Files are copied and resaved to the path specified by the destinationRoot property
    ' and the other settings of the TransmittalInfo object.
    tro.createTransmittalPackage()
End Sub

C#:

// Custom command to create a transmittal package with a drawing file
[CommandMethod("eTransmitDWGFile")]
public static void eTransmitDWGFile()
{
    // Create a transmittal operation
    TransmittalOperation tro = new TransmittalOperation();

    // Setup the transmittal behavior
    TransmittalInfo ti =
        TransInfo(tro.getTransmittalInfoInterface(), "C:\\Users\\Public\\TransmittalAPITest\\");

    // Add a DWG file
    TransmittalFile tf = null;
    tro.addDrawingFile("C:\\AutoCAD\\Sample\\Sheet Sets\\Architectural\\A-02.dwg", out tf);

    // Create the transmittal package
    // Files are copied and resaved to the path specified by the destinationRoot property
    // and the other settings of the TransmittalInfo object.
    tro.createTransmittalPackage();
}

路过

雷人

握手

鲜花

鸡蛋

最新评论

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

GMT+8, 2024-6-27 16:05

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部