File

src/client/app/frameworks/apis/services/bime.logic.data.service.ts

Description

逻辑数据对象,模型树,空间树,视图,视点,批注,二维,构件属性等数据
命名空间:window.BIMe.logicData.BIMeLogicData

Constructor

constructor(resource: ResourceService, jsonLoadService: JsonLoadService, documentManagementLoaderService: DocumentManagementLoaderService)

Methods

Public getModelTree
getModelTree(modelId: string, viewId: string, versionNO: string)

得到模型结构树,每个视图下都有不同的结构树

Parameters :
  • modelId

    模型ID

  • viewId

    视图ID

  • versionNO

    模型版本

Example :
function getModelTree(){
window.BIMe.logicData.BIMeLogicData.getModelTree(modelId, viewId, versionNO).then(function(modelTree){
console.log(res);
});
}
Returns: any
Public getModelStructureTree
getModelStructureTree(modelId: string, viewId: string, nodePath: string, withChild: boolean)

得到模型树,分批获取

Parameters :
  • modelId

    模型ID

  • viewId

    视图ID

  • nodePath

    构件树路径,父节点ID + '|' + 当前节点ID

  • withChild
Returns: any
Public getSpaceTree
getSpaceTree(modelId: string, versionNO: string)

得到模型的空间树数据

Parameters :
  • modelId

    模型id

  • versionNO

    模型版本号默认为""

Example :
   function getSpaceTree(){
window.BIMe.logicData.BIMeLogicData.getSpaceTree(modelId, versionNO).then(function(modelTree){
console.log(res);
});
}
Returns: any

{Status:状态码, 200 表示正确返回,404 表示没有数据, Data: 空间树数据, 无数据返回null}

Public getSystemTree
getSystemTree(modelId: string, versionNO: string)

返回空间数据树

Parameters :
  • modelId

    模型Id

  • versionNO

    模型版本号默认为""

Example :
   function getSystemTree(){
window.BIMe.logicData.BIMeLogicData.getSystemTree(modelId, versionNO).then(function(modelTree){
console.log(res);
});
}
Returns: any

{Status:状态码, 200 表示正确返回,404 表示没有数据, Data: 系统数据, 无数据返回null}

Public getSheets
getSheets(modelId: string, versionNO: string)

得到二维数据

Parameters :
  • modelId

    模型Id

  • versionNO

    模型版本号默认为""

Example :
   function getSheets(){
window.BIMe.logicData.BIMeLogicData.getSheets(modelId, versionNO).then(function(modelTree){
console.log(res);
});
}
Returns: any

{Status:状态码, 200 表示正确返回,404 表示没有数据, Data: 二维数据, 无数据返回null}

Public getAllView
getAllView(modelId: string)

得到当前所有的模型视图

Parameters :
  • modelId

    模型Id

Example :
   function getAllView(){
window.BIMe.logicData.BIMeLogicData.getAllView(modelId).then(function(modelTree){
console.log(res);
});
}
Returns: any
Public getView
getView(modelId: string, viewId: string)

根据视图Id得到视图信息

Parameters :
  • modelId

    模型Id

  • viewId

    视图Id

Example :
   function getView(){
window.BIMe.logicData.BIMeLogicData.getView(modelId, viewId).then(function(modelTree){
console.log(res);
});
}
Returns: any
Public getViewpoints
getViewpoints(viewId: string)

得到当前视图下的所有视点(包括批注)的全部信息

Parameters :
  • viewId

    视点Id

Example :
   function getViewpoints(){
window.BIMe.logicData.BIMeLogicData.getViewpoints(viewId).then(function(modelTree){
console.log(res);
});
}
Returns: any
Public getViewpoint
getViewpoint(viewpointId: string)

得到视点数据

Parameters :
  • viewpointId

    视点id

Example :
   function getViewpoint(){
window.BIMe.logicData.BIMeLogicData.getViewpoint(viewpointId).then(function(modelTree){
console.log(res);
});
}
Returns: any
Public getViewpointDocumentAssociation
getViewpointDocumentAssociation(modelId: string, viewpointId: string)

得到视点的关联文档

Parameters :
  • modelId
  • viewpointId
Example :
   function getViewpointDocumentAssociation(){
window.BIMe.logicData.BIMeLogicData.getViewpointDocumentAssociation(modelId,viewpointId).then(function(modelTree){
console.log(res);
});
}
Returns: any
Public getElementProperty
getElementProperty(id: string)

得到构件的原始属性, 从revit或navisworks导出的属性

Parameters :
  • id

    id = modelId(模型Id) + '^' + elementId(构件Id)

Example :
   function getElementProperty(){
window.BIMe.logicData.BIMeLogicData.getElementProperty(id).then(function(modelTree){
console.log(res);
});
}
Returns: any
Public getElementExternalProperty
getElementExternalProperty(id: string)

得到构件的扩展属性

Parameters :
  • id

    id = modelId(模型Id) + '^' + elementId(构件Id)

Example :
   function getElementExternalProperty(){
window.BIMe.logicData.BIMeLogicData.getElementExternalProperty(id).then(function(modelTree){
console.log(res);
});
}
Returns: any
Public getElementExternalLink
getElementExternalLink(id: string)

得到构件的链接数据

Parameters :
  • id

    id = modelId + '^' + elementId

Example :
   function getElementExternalLink(){
window.BIMe.logicData.BIMeLogicData.getElementExternalLink(id).then(function(modelTree){
console.log(res);
});
}
Returns: any
Public getElementDocumentAssociation
getElementDocumentAssociation(id: string)

得到构件关联文档

Parameters :
  • id
Example :
   function getElementDocumentAssociation(){
window.BIMe.logicData.BIMeLogicData.getElementDocumentAssociation(id).then(function(modelTree){
console.log(res);
});
}
Returns: void
Public getAllDocuments
getAllDocuments()

得到当前模型下的所有文档

Example :
   function getAllDocuments(){
window.BIMe.logicData.BIMeLogicData.getAllDocuments().then(function(modelTree){
console.log(res);
});
}
Returns: any
Public getAllDrawings
getAllDrawings()

得到当前模型下的图纸

Example :
   function getAllDrawings(){
window.BIMe.logicData.BIMeLogicData.getAllDrawings().then(function(modelTree){
console.log(res);
});
}
Returns: any

results matching ""

    No results matching ""