AnyCAD Rapid API 2025
Help you to create a better world!
全部  命名空间 函数 变量 属性 事件  
ParameterDict类 参考
类 ParameterDict 继承关系图:
ParameterValue AObject

Public 成员函数

ClassId GetClassId ()
 
String GetShortName ()
 
boolean IsEqual (ParameterValue other)
 
String ToStr ()
 
boolean Parse (String str)
 
boolean Copy (ParameterValue other)
 
String ToJSON ()
 
boolean FromJSON (String json)
 
boolean LoadFile (String fileName)
 
boolean SaveFile (String fileName)
 
ParameterValue Find (String name)
 
void Remove (String name)
 
boolean IsExist (String name)
 
void Clear ()
 
StringList GetNames ()
 
float Get (String name, float failback)
 
FloatList Get (String name, FloatList failback)
 
double Get (String name, double failback)
 
DoubleList Get (String name, DoubleList failback)
 
int Get (String name, int failback)
 
Int32List Get (String name, Int32List failback)
 
boolean Get (String name, boolean failback)
 
ObjectId Get (String name, ObjectId failback)
 
ObjectIdList Get (String name, ObjectIdList failback)
 
String Get (String name, String failback)
 
StringList Get (String name, StringList failback)
 
Vector3 Get (String name, Vector3 failback)
 
Vector3d Get (String name, Vector3d failback)
 
GXYZ Get (String name, GXYZ failback)
 
GPnt Get (String name, GPnt failback)
 
GPntList Get (String name, GPntList failback)
 
GVec Get (String name, GVec failback)
 
GDir Get (String name, GDir failback)
 
GAx1 Get (String name, GAx1 failback)
 
GAx2 Get (String name, GAx2 failback)
 
GAx3 Get (String name, GAx3 failback)
 
GPnt2d Get (String name, GPnt2d failback)
 
GVec2d Get (String name, GVec2d failback)
 
GDir2d Get (String name, GDir2d failback)
 
float GetFloat (String name, float failback)
 
FloatList GetFloatList (String name, FloatList failback)
 
double GetDouble (String name, double failback)
 
DoubleList GetDoubleList (String name, DoubleList failback)
 
int GetInt32 (String name, int failback)
 
Int32List GetInt32List (String name, Int32List failback)
 
boolean GetBool (String name, boolean failback)
 
ObjectId GetObjectId (String name, ObjectId failback)
 
ObjectIdList GetObjectIdList (String name, ObjectIdList failback)
 
String GetString (String name, String failback)
 
StringList GetStringList (String name, StringList failback)
 
Vector3 GetVector3f (String name, Vector3 failback)
 
GPnt GetGPnt (String name, GPnt failback)
 
GPntList GetGPntList (String name, GPntList failback)
 
GVec GetGVec (String name, GVec failback)
 
GDir GetGDir (String name, GDir failback)
 
GAx1 GetGAx1 (String name, GAx1 failback)
 
GAx2 GetGAx2 (String name, GAx2 failback)
 
GAx3 GetGAx3 (String name, GAx3 failback)
 
GPnt2d GetGPnt2d (String name, GPnt2d failback)
 
GVec2d GetGVec2d (String name, GVec2d failback)
 
GDir2d GetGDir2d (String name, GDir2d failback)
 
void Add (String name, float val)
 
void Add (String name, FloatList val)
 
void Add (String name, double val)
 
void Add (String name, DoubleList val)
 
void Add (String name, int val)
 
void Add (String name, Int32List val)
 
void Add (String name, boolean val)
 
void Add (String name, ObjectId val)
 
void Add (String name, ObjectIdList val)
 
void Add (String name, ObjectIdSet val)
 
void Add (String name, String val)
 
void Add (String name, StringList val)
 
void Add (String name, Vector3 val)
 
void Add (String name, GXYZ val)
 
void Add (String name, GPnt val)
 
void Add (String name, GPntList val)
 
void Add (String name, GVec val)
 
void Add (String name, GDir val)
 
void Add (String name, GAx1 val)
 
void Add (String name, GAx2 val)
 
void Add (String name, GAx3 val)
 
void Add (String name, GTrsf val)
 
void Add (String name, GPnt2d val)
 
void Add (String name, GVec2d val)
 
void Add (String name, GDir2d val)
 
void AddFloat (String name, float val)
 
void AddFloatList (String name, FloatList val)
 
void AddDouble (String name, double val)
 
void AddDoubleList (String name, DoubleList val)
 
void AddInt32 (String name, int val)
 
void AddInt32List (String name, Int32List val)
 
void AddBool (String name, boolean val)
 
void AddObjectId (String name, ObjectId val)
 
void AddObjectIdList (String name, ObjectIdList val)
 
void AddString (String name, String val)
 
void AddStringList (String name, StringList val)
 
void AddVector3f (String name, Vector3 val)
 
void AddGPnt (String name, GPnt val)
 
void AddGPntList (String name, GPntList val)
 
void AddGVec (String name, GVec val)
 
void AddGDir (String name, GDir val)
 
void AddGAx1 (String name, GAx1 val)
 
void AddGAx2 (String name, GAx2 val)
 
void AddGAx3 (String name, GAx3 val)
 
void AddGPnt2d (String name, GPnt2d val)
 
void AddGVec2d (String name, GVec2d val)
 
void AddGDir2d (String name, GDir2d val)
 
- Public 成员函数 继承自 ParameterValue
boolean IsSameType (ParameterValue other)
 
- Public 成员函数 继承自 AObject
boolean IsEqual (AObject other)
 

静态 Public 成员函数

static ClassId GetStaticClassId ()
 
static ParameterDict Cast (AObject obj)
 

详细描述

<> ParameterDict 参数集合对象,支持多种类型的参数,支持动态添加、删除、修改、查找。

成员函数说明

◆ Cast()

static ParameterDict ParameterDict.Cast ( AObject obj)
static

重载 ParameterValue .

◆ Clear()

void ParameterDict.Clear ( )

清空

◆ Copy()

boolean ParameterDict.Copy ( ParameterValue other)

从来源对象复制数据

参数
other来源数据
返回
是否成功

重载 ParameterValue .

◆ Find()

ParameterValue ParameterDict.Find ( String name)

查找参数

参数
name名称
返回

◆ FromJSON()

boolean ParameterDict.FromJSON ( String json)

从JSON字符串反序列化

◆ GetClassId()

ClassId ParameterDict.GetClassId ( )

获取对象的类型信息

返回
类信息

重载 ParameterValue .

◆ GetNames()

StringList ParameterDict.GetNames ( )

获取子项的列表

返回
名称列表

◆ GetShortName()

String ParameterDict.GetShortName ( )

重载 ParameterValue .

◆ GetStaticClassId()

static ClassId ParameterDict.GetStaticClassId ( )
static

获取类信息

返回

重载 ParameterValue .

◆ IsEqual()

boolean ParameterDict.IsEqual ( ParameterValue other)

数值是否相同

参数
other比较的对象
返回
是否相同

重载 ParameterValue .

◆ IsExist()

boolean ParameterDict.IsExist ( String name)

判断是否存在

参数
name名称
返回
true存在

◆ LoadFile()

boolean ParameterDict.LoadFile ( String fileName)

从文件加载

◆ Parse()

boolean ParameterDict.Parse ( String str)

解析字符串

参数
str字符串
返回
是否成功

重载 ParameterValue .

◆ Remove()

void ParameterDict.Remove ( String name)

移除参数

参数
name名称

◆ SaveFile()

boolean ParameterDict.SaveFile ( String fileName)

保存到文件

◆ ToJSON()

String ParameterDict.ToJSON ( )

序列化到JSON字符串

◆ ToStr()

String ParameterDict.ToStr ( )

转换成字符串

返回
字符串

重载 ParameterValue .