elementApi

构件元素相关API

Methods

inner getAllElement(funcRet)

获得所有构件元素md5

Parameters:
Name Type Description
funcRet getAllElementCallback

inner getAllElementInfo(funcRet)

获得所有构件元素的信息

Parameters:
Name Type Description
funcRet getAllElementInfoCallback

inner getAttributeInfo(md5, funcRet)

按构件元素md5查询构件元素信息

Parameters:
Name Type Description
md5 string

构件元素md5

funcRet getAttributeInfoCallback

Type Definitions

getAllElementCallback(returnValue)

getAllElement回调函数

Parameters:
Name Type Description
returnValue Array.<string>

构件元素md5

getAllElementInfoCallback(returnValue)

getAllElementInfo回调函数

Parameters:
Name Type Description
returnValue JSON

getAllElementInfo回调函数JSON对象
格式如下
[{
Md5: string, 获取属性md5
ElementID: string, 获取构件的elementid,不具有唯一性
AttrMd5: string, 获取构件的属性md5
ParentMd5: string, 获取构件的父构件md5,父构件不带有施工段信息,子构件带有施工段信息
ConstructionSectionMd5: string, 获取构件的施工段信息md5
Childs: string[], 获取构件的子构件对象,子构件没有子构件信息
}]

getAttributeInfoCallback(returnValue)

getAllElement回调函数

Parameters:
Name Type Description
returnValue JSON

getAllElementInfo回调函数JSON对象
格式如下
{
ElementID: string, 获取构件的elementid,不具有唯一性
AttrMd5: string, 获取构件的属性md5
ParentMd5: string, 获取构件的父构件md5,父构件不带有施工段信息,子构件带有施工段信息
ConstructionSectionMd5: string, 获取构件的施工段信息md5
Childs: string[], 获取构件的子构件对象,子构件没有子构件信息
}