|
@@ -48,7 +48,7 @@ object RevitIdAnalyzer {
|
|
return SResponseType.success == result.result
|
|
return SResponseType.success == result.result
|
|
}
|
|
}
|
|
|
|
|
|
- fun analyzeConnector(connectorService: SObjectService<Connector>, baseObj: BaseObj<AllComponents>, connectors: ArrayList<Connector>?, revitIdMap: HashMap<String, BaseComponent>) : Boolean{
|
|
|
|
|
|
+ fun analyzeConnector(connectorService: SObjectService<Connector>, baseObj: BaseObj<AllComponents>, connectors: ArrayList<Connector>?, bimIdPrefix: String, revitIdMap: HashMap<String, BaseComponent>) : Boolean{
|
|
if(connectors == null || connectors.isEmpty())
|
|
if(connectors == null || connectors.isEmpty())
|
|
return true
|
|
return true
|
|
// revit id --> id
|
|
// revit id --> id
|
|
@@ -60,6 +60,7 @@ object RevitIdAnalyzer {
|
|
val tmp = revitIdMap[obj.owner!!]
|
|
val tmp = revitIdMap[obj.owner!!]
|
|
obj.belong = tmp!!.id
|
|
obj.belong = tmp!!.id
|
|
obj.belongType = tmp.elementType
|
|
obj.belongType = tmp.elementType
|
|
|
|
+ obj.belongBimId = "${bimIdPrefix}${tmp.sourceId}"
|
|
}
|
|
}
|
|
if(obj.revitId != null && obj.revitId!!.isNotEmpty())
|
|
if(obj.revitId != null && obj.revitId!!.isNotEmpty())
|
|
connectorMap[obj.revitId!!] = obj.id!!
|
|
connectorMap[obj.revitId!!] = obj.id!!
|