|
AnyCAD Rapid API 2026
Help you to create a better world!
|
ShapeElement的Model层。支持变换自动管理 更多...
Public 成员函数 | |
| ShapeModel (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| ShapeModel (GeneralComponent component) | |
| override void | Initialize (ParameterDict pDict, bool bOverride) |
| 初始化属性集,仅需要序列化的。 | |
| override void | Initialize (ParameterDict pDict) |
| 初始化属性集,仅需要序列化的。 | |
| TransformComponent | GetTransform () |
| GPnt | GetLocation () |
| 获取位置 | |
| void | SetLocation (GPnt loc) |
| 设置位置 | |
| void | SetLocationX (double x) |
| double | GetLocationX () |
| void | SetLocationY (double y) |
| double | GetLocationY () |
| void | SetLocationZ (double z) |
| double | GetLocationZ () |
| GXYZ | GetRotation () |
| XYZ角度 [0, 2pi] | |
| void | SetRotation (GXYZ angles) |
| 设置角度[0, 2pi] | |
| void | SetRotationX (double x) |
| double | GetRotationX () |
| void | SetRotationY (double y) |
| double | GetRotationY () |
| void | SetRotationZ (double z) |
| double | GetRotationZ () |
| void | SetDirection (GDir dir) |
| 设置方向 | |
| GDir | GetDirection () |
| 获取方向 | |
| void | SetColor (Vector3 clr) |
| 设置颜色 | |
| Vector3 | GetColor () |
| 获取颜色 | |
| void | SetTransform (GTrsf trf) |
| GTrsf | GetTransfrom () |
Public 成员函数 继承自 AnyCAD.Platform.PropertiesModel | |
| PropertiesModel (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| PropertiesModel (GeneralComponent component) | |
| bool | IsValid () |
| void | InitializeComponent (bool bOverried) |
| 使用默认值初始化组件 | |
| void | InitializeComponent () |
| 使用默认值初始化组件 | |
| bool | Load (Document pDoc, ObjectId id) |
| 使用Entity的Id初始化Model | |
| virtual void | CopyFrom (ParameterDict dict) |
| 保存参数 | |
| virtual void | CopyTo (ParameterDict dict) |
| 加载参数 | |
| ObjectId | GetEntityId () |
| 获取实体对象Id | |
ShapeElement的Model层。支持变换自动管理
Group: DataManage
| Vector3 AnyCAD.Designing.ShapeModel.GetColor | ( | ) |
获取颜色
| GDir AnyCAD.Designing.ShapeModel.GetDirection | ( | ) |
获取方向
| GPnt AnyCAD.Designing.ShapeModel.GetLocation | ( | ) |
获取位置
| GXYZ AnyCAD.Designing.ShapeModel.GetRotation | ( | ) |
XYZ角度 [0, 2pi]
|
virtual |
初始化属性集,仅需要序列化的。
| pDict | 属性集合 |
重载 AnyCAD.Platform.PropertiesModel .
被 AnyCAD.Designing.SphereModel , 以及 AnyCAD.Designing.TorusModel 重载.
|
virtual |
初始化属性集,仅需要序列化的。
| pDict | 属性集合 |
| bOverride | 覆盖 |
重载 AnyCAD.Platform.PropertiesModel .
被 AnyCAD.Designing.SphereModel , 以及 AnyCAD.Designing.TorusModel 重载.
| void AnyCAD.Designing.ShapeModel.SetColor | ( | Vector3 | clr | ) |
设置颜色
| clr | 颜色 |
| void AnyCAD.Designing.ShapeModel.SetDirection | ( | GDir | dir | ) |
设置方向
| dir |
| void AnyCAD.Designing.ShapeModel.SetLocation | ( | GPnt | loc | ) |
设置位置
| loc |
| void AnyCAD.Designing.ShapeModel.SetRotation | ( | GXYZ | angles | ) |
设置角度[0, 2pi]
| angles |