|
AnyCAD Rapid API 2025
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) |
| short | GetLineWidth () |
| boolean | SetLineWidth (short val) |
| ObjectId | GetPartId () |
| boolean | SetPartId (ObjectId val) |
| ObjectId | GetPhysicalMaterialId () |
| boolean | SetPhysicalMaterialId (ObjectId val) |
| void | SetVisible (boolean bVisible) |
| boolean | GetVisible () |
| int | IsCheckable () |
| void | SetEnabled (boolean enabled) |
| boolean | GetEnabled () |
| void | SetInfinitSize (boolean infinite) |
| boolean | GetInfinitSize () |
| void | SetProvisional (boolean enabled) |
| boolean | GetProvisional () |
| void | SetPreviewable (boolean enabled) |
| boolean | GetPreviewable () |
| void | SetPickable (boolean bPickable) |
| boolean | GetPickable () |
| void | SetLocked (boolean locked) |
| boolean | GetLocked () |
| void | SetEditable (boolean editable) |
| boolean | GetEditable () |
| boolean | IsEditable () |
| void | SetSectionable (boolean bSectionable) |
| boolean | GetSectionable () |
| void | SetBrowserable (boolean browserable) |
| boolean | GetBrowserable () |
| void | SetInvisible () |
| 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 | SetDraggable (boolean enabled) |
| boolean | GetDraggable () |
| void | SetShapeSharable (boolean enabled) |
| boolean | GetShapeSharable () |
| 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) |
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) |
| String | GetCategory () |
| boolean | SetCategory (String val) |
| ObjectId | GetPrototypeId () |
| boolean | SetPrototypeId (ObjectId val) |
| int | GetOrderNumber () |
| boolean | SetOrderNumber (int val) |
| Document | GetDocument () |
| void | SetNameW (String name) |
| String | GetNameW () |
| String | GetUIName () |
| String | GetUINameW () |
| String | GetToolTip (PickedItem item) |
| String | GetToolTipW (PickedItem item) |
| void | MakeUniqueName (String base) |
| void | MakeUniqueNameW (String base) |
| void | MakeUniqueNameByBase (String base) |
| void | MakeUniqueAliasName (String base, boolean continuous) |
| void | MakeUniqueAliasName (String base) |
| void | MakeUniqueAliasNameW (String base, boolean continuous) |
| void | MakeUniqueAliasNameW (String base) |
| void | MakeUniqueName () |
| void | MakeUniqueNameByConfig () |
| void | MakeUniqueAliasNameByConfig (boolean continuous) |
| void | MakeUniqueAliasNameByConfig () |
| void | RequestUpdate (long propId) |
| void | ListParameters (ParameterDict parameters) |
| boolean | SetParameter (ParameterDict parameters, String key) |
| String | GetModifyCommand () |
| Element | GetPrototype () |
Public 成员函数 继承自 AObject | |
| boolean | IsEqual (AObject other) |
静态 Public 成员函数 | |
| static ClassId | GetStaticClassId () |
| static EntityElement | Cast (AObject obj) |
| static EntityElement | Create (Document pDoc) |
额外继承的成员函数 | |
静态 Public 属性 继承自 Element | |
| static final long | PID_UpdateBrowerItem = AnyCADJNI.Element_PID_UpdateBrowerItem_get() |
| static final long | PID_UpdateBrowerLayout = AnyCADJNI.Element_PID_UpdateBrowerLayout_get() |
<>
实体类,可以动态添加组件
|
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, BBoxElement, ConstraintElement, CoordinateConstraint, CoordinateSystemElement, CurveElement, DatumElement, DrawableElement, ExternalDocument, FunctionElement, GroupElement, InstanceElement, LayerElement, MachiningWorkstage, MirrorConstraint, PartElement, PointCloudElement, PointElement, PointsElement, PolylineElement, ShapeElement, SimpleCurveElement, SketchCurve, SketchElement, SketchGeometry, SketchPlane, TextElement, TrajectoryElement, TransitionWorkstage, UserElement, VisualElement, WaypointElement , 以及 WorkstageElement 重载.
| Component EntityElement.GetComponent | ( | String | className | ) |
根据类名获取组件
| className | 组件的类名 |
| boolean EntityElement.GetDraggable | ( | ) |
是否可被拖拽
| boolean EntityElement.GetDynamic | ( | ) |
是否包含动态内容
| boolean EntityElement.GetManaged | ( | ) |
获取托管状态
| boolean EntityElement.GetShadowing | ( | ) |
是否为影子对象
|
static |
获取类信息
重载 Element .
被 AssemblyElement, BBoxElement, ConstraintElement, CoordinateConstraint, CoordinateSystemElement, CurveElement, DatumElement, DrawableElement, ExternalDocument, FunctionElement, GroupElement, InstanceElement, LayerElement, MachiningWorkstage, MirrorConstraint, PartElement, PointCloudElement, PointElement, PointsElement, PolylineElement, ShapeElement, SimpleCurveElement, SketchCurve, SketchElement, SketchGeometry, SketchPlane, TextElement, TrajectoryElement, TransitionWorkstage, UserElement, VisualElement, WaypointElement , 以及 WorkstageElement 重载.
| ObjectId EntityElement.GetUsedLineStyleId | ( | ) |
自定义查找线样式的顺序
| ObjectId EntityElement.GetUsedMaterialId | ( | ) |
自定义查找材质的顺序
| ObjectId EntityElement.GetUsedTextStyleId | ( | ) |
自定义查找文字样式的顺序
| void EntityElement.SetBrowserable | ( | boolean | browserable | ) |
是否在默认的目录树上可见
| browserable | 是否可见 |
| void EntityElement.SetDraggable | ( | boolean | enabled | ) |
是否可被拖拽
| enabled | 默认false |
| void EntityElement.SetDynamic | ( | boolean | enabled | ) |
是否包含动态内容。
| enabled | 默认false |
| void EntityElement.SetEditable | ( | boolean | editable | ) |
是否可被编辑,与Locked起反作用
| editable |
| void EntityElement.SetInfinitSize | ( | boolean | infinite | ) |
设置是否无限大,默认有限的
| infinite | true无限大 |
| void EntityElement.SetInvisible | ( | ) |
设置在目录树和场景均不可见
| void EntityElement.SetLocked | ( | boolean | locked | ) |
是否锁定,锁定后则无法编辑
| void EntityElement.SetLODEnabled | ( | boolean | enabled | ) |
是否支持LoD
| enabled | 是否启用 |
| void EntityElement.SetManaged | ( | boolean | enabled | ) |
设置托管状态。
| enabled | 若为true,则不会单独绘制,而是依托于其他构件来绘制,如Instance的Type。默认为false |
| void EntityElement.SetPickable | ( | boolean | bPickable | ) |
是否可被选择
| bPickable |
| void EntityElement.SetPreviewable | ( | boolean | enabled | ) |
设置是否具有自动预览状态
| enabled | 是否具有预览状态 |
| void EntityElement.SetProvisional | ( | boolean | enabled | ) |
设置临时可见性
| enabled | 是否临时可见 |
| void EntityElement.SetSectionable | ( | boolean | bSectionable | ) |
是否可用于生成剖切元素
| bSectionable |
| void EntityElement.SetShadowing | ( | boolean | enabled | ) |
是否为影子对象,显示选择的ID为其父ID。删除后,其父亲也会被删除
| enabled | 是否启用 |
| void EntityElement.SetShapeSharable | ( | boolean | enabled | ) |
剖面元素是否共享三维对象的GRep
| enabled | 默认false |
| void EntityElement.SetVisible | ( | boolean | bVisible | ) |