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

基本模型Model层。 更多...

类 AnyCAD.Designing.PrimitiveModel 继承关系图:
AnyCAD.Designing.ShapeModel AnyCAD.Platform.PropertiesModel AnyCAD.Designing.BoxModel AnyCAD.Designing.ConeModel AnyCAD.Designing.CylinderModel AnyCAD.Designing.PyramidModel AnyCAD.Designing.SphereModel AnyCAD.Designing.TorusModel

Public 成员函数

 PrimitiveModel (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
 PrimitiveModel (GeneralComponent component)
 
override void Initialize (ParameterDict pDict, bool bOverride)
 初始化属性集,仅需要序列化的。
 
override void Initialize (ParameterDict pDict)
 初始化属性集,仅需要序列化的。
 
- Public 成员函数 继承自 AnyCAD.Designing.ShapeModel
 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
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 AnyCAD.Designing.ShapeModel
static string Location ()
 
static string LocationX ()
 
static string LocationY ()
 
static string LocationZ ()
 
static string Rotation ()
 
static string RotationX ()
 
static string RotationY ()
 
static string RotationZ ()
 
static string Direction ()
 
static string DirectionX ()
 
static string DirectionY ()
 
static string DirectionZ ()
 

详细描述

基本模型Model层。

Group: DataManage

成员函数说明

◆ Initialize() [1/2]

override void AnyCAD.Designing.PrimitiveModel.Initialize ( ParameterDict pDict)
virtual

初始化属性集,仅需要序列化的。

参数
pDict属性集合

重载 AnyCAD.Platform.PropertiesModel .

AnyCAD.Designing.PyramidModel, AnyCAD.Designing.SphereModel , 以及 AnyCAD.Designing.TorusModel 重载.

◆ Initialize() [2/2]

override void AnyCAD.Designing.PrimitiveModel.Initialize ( ParameterDict pDict,
bool bOverride )
virtual

初始化属性集,仅需要序列化的。

参数
pDict属性集合
bOverride覆盖

重载 AnyCAD.Platform.PropertiesModel .

AnyCAD.Designing.PyramidModel, AnyCAD.Designing.SphereModel , 以及 AnyCAD.Designing.TorusModel 重载.