CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

ActiveX 开发指南

相关分类

StampDatabase Method (ActiveX/CSP)

2023-1-2 20:13| 发布者: admin| 查看: 163| 评论: 0|来自: AutoCAD

摘要: 报告插件是否使用数据库来检查图形。

报告插件是否使用数据库来检查图形。

支持的平台:仅窗口

Namespace:AcStMgr

集会:AcStMgr.tlb

签名 - AcStManager 对象

仅供内部使用。

VB.NET:

object.StampDatabase(pDb, pluginProgIdArray)

C#:

object.StampDatabase(pDb, pluginProgIdArray);
对象

类型:对象

此方法适用的对象。

pDb

访问:仅输入

类型:对象AcadDatabase

要检查的数据库对象。

pluginProgIdArray

访问:仅输入

类型:变体(字符串数组)

要检查的数据库对象。

签名 - IAcStPlugin2 接口

VB.NET:

Public Sub StampDatabase(pDb, pStampIt) _
                    Implements IAcStPlugin2.StampDatabase
    ...
End Sub

C#:

public void StampDatabase(pDb, ref pStampIt)
{
    ...;
}
对象

类型:IAcSt插件2接口

此方法适用的接口。

pDb

访问:仅输入

类型:对象AcadDatabase

要检查的数据库对象。

pStampIt

访问:输入/输出

类型:布尔

  • False:未检查数据库中的对象;已选中对象 ID 列表中的对象
  • True:已检查数据库中的对象

返回值(RetVal)

No return value.

Remarks

This method stamps the database object with information about a plug-in, such as the name and version. The information is used to determine which plug-ins a DWS file needs to support it.

The method of the AcStManager object instantiates each plug-in identified in pluginProgIdArray and calls the plug-in's method of the interface. If the pStampIt value returned is , this method embeds information about the plug-in. StampDatabaseStampDatabaseIAcStPluginTrue

Release Information

Releases: AutoCAD 2004 and later

  • AcStMgr.tlb - AutoCAD 2004 and later

Examples - AcStManager object

VB.NET:

Not available

C#:

Not available

示例 - IAcStPlugin2 接口

VB.NET:

Public Sub StampDatabase(ByVal pDb As AcadDatabase, _
                         ByRef pStampIt As Boolean) _
                         Implements IAcStPlugin2.StampDatabase

    ' << Change based on standards implementation >>
    ' If the DWS contains layers, return true
    ' Otherwise, return false
    pStampIt = False

    If pDb.Layers.Count > 0 Then
        pStampIt = True
    End If
End Sub

C#:

public void StampDatabase(AcadDatabase pDb, ref bool pStampIt)
{
    // << Change based on standards implementation >>
    // If the DWS contains layers, return true
    // Otherwise, return false
    pStampIt = false;
    if (pDb.Layers.Count > 0)
    {
        pStampIt = true;
    }
}

路过

雷人

握手

鲜花

鸡蛋

最新评论

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

GMT+8, 2024-5-11 18:53

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部