AnyCAD Rapid API 2026
Help you to create a better world!
载入中...
搜索中...
未找到
AnyCAD.Designing.ShapeSchema类 参考

通过基本参数创建ShapeElement类型的实体对象 更多...

类 AnyCAD.Designing.ShapeSchema 继承关系图:
AnyCAD.Designing.ShapeSchemaBase AnyCAD.Platform.ElementSchema AnyCAD.Designing.PrimitiveSchema

Public 成员函数

 ShapeSchema (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
virtual TopoShape CreateShape (SchemaComponent properties)
 继承创建几何对象
 
- Public 成员函数 继承自 AnyCAD.Designing.ShapeSchemaBase
 ShapeSchemaBase (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
override string OnGetEntityClassName ()
 返回自定义对象的类名。必须是从Element继承的类的名称
 
override bool OnParameterChanged (Document document, SchemaComponent properties)
 当对象的参数发生更改的时候调用。一般用于重新生成几何。
 
- Public 成员函数 继承自 AnyCAD.Platform.ElementSchema
 ElementSchema (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
 ElementSchema (string name)
 
string GetName ()
 
void SetName (string val)
 
string GetTitle ()
 
void SetTitle (string val)
 
string GetIcon ()
 
void SetIcon (string val)
 
string GetCategory ()
 
void SetCategory (string val)
 
string GetModifier ()
 
void SetModifier (string val)
 
string GetSector ()
 
void SetSector (string val)
 
virtual void Initialize ()
 初始化。如设置参数值
 
void AddPropertyItem (string itemName)
 添加属性标识。标识由应用层自己定义。
 
bool HasPropertyItem (string itemName)
 是否存在某个属性的标识。
 
ParameterDict GetParameterDict ()
 获取参数列表
 
void RemoveParameter (string name)
 移除参数
 
ParameterValue FindParameter (string name)
 查找参数
 
ParameterIterator CreateParameterIterator ()
 创建参数迭代器
 
void AddAction (string name, EntityAction action)
 定义实体的行为
 
void AddAction (EntityAction action)
 
void RemoveAction (string name)
 移除行为
 
StringList GetActionNames ()
 获取关联的EntityAction名称列表
 
virtual bool OnParameterChanged (Document document, PropertiesComponent properties)
 PropertiesComponent: 当对象的参数发生更改的时候调用。一般用于更新关联的属性。
 
Element CreateEntity (string name, Document pOwner)
 创建Entity对象,并做初始化。
 
Element CreateEntity (ObjectId id, string name, Document pOwner)
 
virtual bool OnExecuteAction (Document doc, EntityElement pEntity, string action, ParameterDict pParams)
 执行自定义命令
 
void InitializeComponent (GeneralComponent pComponent)
 GeneralComponent: 用ElementSchema的属性来初始化组件
 
virtual void InitializeModel ()
 初始化
 
virtual ElementModel CreateModel ()
 创建模型
 
SchemaComponent AddComponent (ObjectId id, Document doc)
 
SchemaComponent CreateComponent (string name, Document doc)
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 AnyCAD.Designing.ShapeSchemaBase
static SchemaComponent Create (Document pDoc, string schemaName, bool bVisible)
 
static SchemaComponent Create (Document pDoc, string schemaName)
 

详细描述

通过基本参数创建ShapeElement类型的实体对象

Group: DataManage

成员函数说明

◆ CreateShape()

virtual TopoShape AnyCAD.Designing.ShapeSchema.CreateShape ( SchemaComponent properties)
virtual

继承创建几何对象

参数
properties属性
返回
几何对象