报告插件是否使用数据库来检查图形。 支持的平台:仅窗口 Namespace:AcStMgr 集会:AcStMgr.tlb 签名 - AcStManager 对象仅供内部使用。 VB.NET: object.StampDatabase(pDb, pluginProgIdArray) C#: object.StampDatabase(pDb, pluginProgIdArray);
签名 - IAcStPlugin2 接口VB.NET: Public Sub StampDatabase(pDb, pStampIt) _
Implements IAcStPlugin2.StampDatabase
...
End Sub
C#: public void StampDatabase(pDb, ref pStampIt)
{
...;
}
返回值(RetVal)No return value. RemarksThis 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 InformationReleases: AutoCAD 2004 and later
Examples - AcStManager objectVB.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;
}
}
|
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-11-29 10:34
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.