AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
ClassId | GetClassId () |
long | GetState () |
boolean | SetState (long val) |
ObjectId | GetParentId () |
boolean | SetParentId (ObjectId val) |
ObjectId | GetDbViewId () |
boolean | SetDbViewId (ObjectId val) |
ObjectId | GetMaterialId () |
boolean | SetMaterialId (ObjectId val) |
Vector3 | GetColor () |
boolean | SetColor (Vector3 val) |
ObjectId | GetLineStyleId () |
boolean | SetLineStyleId (ObjectId val) |
ObjectId | GetTextStyleId () |
boolean | SetTextStyleId (ObjectId val) |
void | SetVisible (boolean bVisible) |
boolean | GetVisible () |
void | SetProvisional (boolean enabled) |
boolean | GetProvisional () |
void | SetPickable (boolean bPickable) |
boolean | GetPickable () |
void | SetLocked (boolean locked) |
boolean | GetLocked () |
void | SetSectionable (boolean bSectionable) |
boolean | GetSectionable () |
void | SetBrowserable (boolean browserable) |
boolean | GetBrowserable () |
void | SetEditable (boolean editable) |
boolean | GetEditable () |
void | SetLODEnabled (boolean enabled) |
boolean | GetLODEnabled () |
void | SetShadowing (boolean enabled) |
boolean | GetShadowing () |
void | SetManaged (boolean enabled) |
boolean | GetManaged () |
void | SetDynamic (boolean enabled) |
boolean | GetDynamic () |
void | ClearColor () |
Component | GetComponent (String className) |
Component | FindComponent (String className, String name) |
void | CollectChildren (ReferenceCollector collector) |
void | CollectPickedId (PickedIdCollector collector) |
ObjectId | GetUsedMaterialId () |
ObjectId | GetUsedLineStyleId () |
ObjectId | GetUsedTextStyleId () |
boolean | Execute (String action, ParameterDict pParams) |
int | CloneComponents (EntityElement pEntity) |
void | ListParameters (ParameterDict parameters) |
boolean | SetParameter (ParameterDict parameters, String key) |
Public 成员函数 继承自 Element | |
long | GetUserId () |
boolean | SetUserId (long val) |
String | GetName () |
boolean | SetName (String val) |
String | GetSchemaName () |
boolean | SetSchemaName (String val) |
long | GetUserFlags () |
void | SetUserFlags (long val) |
ObjectId | GetId () |
String | GetAliasName () |
boolean | SetAliasName (String val) |
ObjectId | GetSourceId () |
boolean | SetSourceId (ObjectId val) |
String | GetCategory () |
boolean | SetCategory (String val) |
Document | GetDocument () |
void | MakeUniqueName (String base) |
void | MakeUniqueNameByBase (String base) |
void | MakeUniqueName () |
void | MakeUniqueNameByConfig () |
void | RequestUpdate (EnumUpdateElementFlag mode) |
void | RequestUpdate () |
String | GetModifyCommand () |
Public 成员函数 继承自 AObject | |
boolean | IsEqual (AObject other) |
静态 Public 成员函数 | |
static ClassId | GetStaticClassId () |
static EntityElement | Cast (AObject obj) |
static EntityElement | Create (Document pDoc) |
<>
实体类,可以动态添加组件
|
static |
重载 Element .
int EntityElement.CloneComponents | ( | EntityElement | pEntity | ) |
从pEntity克隆Component
pEntity | 来源 |
void EntityElement.CollectChildren | ( | ReferenceCollector | collector | ) |
收集子对象
collector | 收集器 |
void EntityElement.CollectPickedId | ( | PickedIdCollector | collector | ) |
收集显示对象ID
collector | 收集器 |
boolean EntityElement.Execute | ( | String | action, |
ParameterDict | pParams ) |
执行自定义的命令。需要在事务范围内执行
action | 命令标识 |
pParams | 参数 |
Component EntityElement.FindComponent | ( | String | className, |
String | name ) |
根据类名获取组件
className | 组件的类名 |
name | 组件的名称 |
ClassId EntityElement.GetClassId | ( | ) |
获取对象的类型信息
重载 Element .
被 AssemblyElement, AxPathElement, AxPointElement, BBoxElement, CoordinateSystemElement, CurveElement, DrawableElement, FeatureElement, FunctionElement, GroupElement, InstanceElement, LayerElement, LinkElement, MachiningWorkstage, PartElement, PointCloudElement, PointElement, PointsElement, PolylineElement, ShapeElement, SimpleCurveElement, SketchCurve, SketchElement, SketchPlane, TextElement, TransitionWorkstage, UserElement, VisualElement , 以及 Workstage 重载.
Component EntityElement.GetComponent | ( | String | className | ) |
根据类名获取组件
className | 组件的类名 |
boolean EntityElement.GetDynamic | ( | ) |
是否包含动态内容
boolean EntityElement.GetManaged | ( | ) |
获取托管状态
boolean EntityElement.GetShadowing | ( | ) |
是否为影子对象
|
static |
获取类信息
重载 Element .
被 AssemblyElement, AxPathElement, AxPointElement, BBoxElement, CoordinateSystemElement, CurveElement, DrawableElement, FeatureElement, FunctionElement, GroupElement, InstanceElement, LayerElement, LinkElement, MachiningWorkstage, PartElement, PointCloudElement, PointElement, PointsElement, PolylineElement, ShapeElement, SimpleCurveElement, SketchCurve, SketchElement, SketchPlane, TextElement, TransitionWorkstage, UserElement, VisualElement , 以及 Workstage 重载.
ObjectId EntityElement.GetUsedLineStyleId | ( | ) |
自定义查找线样式的顺序
ObjectId EntityElement.GetUsedMaterialId | ( | ) |
自定义查找材质的顺序
ObjectId EntityElement.GetUsedTextStyleId | ( | ) |
自定义查找文字样式的顺序
void EntityElement.ListParameters | ( | ParameterDict | parameters | ) |
void EntityElement.SetBrowserable | ( | boolean | browserable | ) |
是否在默认的目录树上可见
browserable | 是否可见 |
void EntityElement.SetDynamic | ( | boolean | enabled | ) |
是否包含动态内容。
enabled | 默认false |
void EntityElement.SetEditable | ( | boolean | editable | ) |
是否可被编辑
editable |
void EntityElement.SetLocked | ( | boolean | locked | ) |
是否锁定,锁定后则无法编辑
void EntityElement.SetLODEnabled | ( | boolean | enabled | ) |
是否支持LoD
enabled | 是否启用 |
void EntityElement.SetManaged | ( | boolean | enabled | ) |
设置托管状态。
enabled | 若为true,则不会单独绘制,而是依托于其他构件来绘制,如Assembly子构件、Instance的Type。默认为false |
boolean EntityElement.SetParameter | ( | ParameterDict | parameters, |
String | key ) |
void EntityElement.SetPickable | ( | boolean | bPickable | ) |
是否可被选择
bPickable |
void EntityElement.SetProvisional | ( | boolean | enabled | ) |
设置临时可见性
enabled | 是否临时可见 |
void EntityElement.SetSectionable | ( | boolean | bSectionable | ) |
是否可用于生成剖切元素
bSectionable |
void EntityElement.SetShadowing | ( | boolean | enabled | ) |
是否为影子对象,显示选择的ID为其父ID。删除后,其父亲也会被删除
enabled | 是否启用 |
void EntityElement.SetVisible | ( | boolean | bVisible | ) |