CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

ActiveX 开发指南

相关分类

IAcStPlugin2 接口 (ActiveX/CSP)

2023-1-2 21:22| 发布者: admin| 查看: 205| 评论: 0|来自: AutoCAD

摘要: 允许插件参与图形标准检查过程的接口。

允许插件参与图形标准检查过程的接口。

支持的平台:仅窗口

Namespace:AcStMgr

集会:AcStMgr.tlb

班级信息

类名

IAcStPlugin2

对象继承
Object
   IAcStPlugin2
创建使用

VB.NET

Public Class <custom_class_name>
    Implements AcStMgr.IAcStPlugin2

    ...
End Class

C#

internal class <custom_class_name> : AcStMgr.IAcStPlugin2
{
    ...
}
访问方式

VB.NET

User-defined variable

C#

User-defined variable

Remarks

The interface must be implemented by a plug-in that wants to participate in the checking of a drawing managed by an object. The plug-in checks a drawing for errors against a set of standards defined and implemented by the plug-in, and reports errors by creating an object that is passed to the plug-in by the Standards Framework. Optionally, the plug-in can implement code for fixing errors by creating a object. The plug-in also implements methods to provide information such as the version and author of the plug-in. IAcStPlugin2AcStErrorIteratorAcStErrorAcStFix

All plug-ins must contain definitions for specific properties and methods, while other properties and methods are option based on if the plug-in supports the CAD Standards feature in the AutoCAD program and/or Batch Standards Checker. The following table outlines when and which properties and methods must be defined as part of a custom class that implements/inherits from the interface. IAcStPlugin2

Method/Property Name CAD Standards Batch Standards Checker
Methods    
CheckSysvar Required Optional
Clear Required Optional
Done Required Optional
FixError Required Optional
GetAllFixes Required Optional
GetError Required Required
GetObjectFilter Required Required
GetPropertyDiffs Required Optional
GetRecommendedFix Optional Optional
Initialize Required Required
Next Required Optional
SetContext Required Optional
设置审核 必填 必填
邮票数据库 必填 自选
开始 必填 自选
更新状态 必填 必填
写插件信息 自选 自选
性能    
作者 必填 必填
描述 必填 必填
人权 必填 必填
图标 必填 必填
名字 必填 必填
版本 必填 必填

发布信息

释放:AutoCAD 2004 及更高版本

  • AcStMgr.tlb- AutoCAD 2004 及更高版本

路过

雷人

握手

鲜花

鸡蛋

最新评论

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

GMT+8, 2024-5-19 14:37

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部