caiaf 3 lat temu
rodzic
commit
3d6268a298

+ 1 - 1
revit-algorithm/src/main/kotlin/cn/sagacloud/server/algorithm/services/json/JSONAnalyzerService.kt

@@ -327,7 +327,7 @@ open class JSONAnalyzerService {
                 baseObj,
                 //连接件转换
 //                connectorConvert(baseObj.elements!!.connectors,map),
-                connectors,
+                bimIdPrefix,
                 revitIdMap
         )
         if (!result) {

+ 2 - 1
revit-algorithm/src/main/kotlin/cn/sagacloud/server/algorithm/services/json/RevitIdAnalyzer.kt

@@ -48,7 +48,7 @@ object RevitIdAnalyzer {
         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())
             return true
         // revit id --> id
@@ -60,6 +60,7 @@ object RevitIdAnalyzer {
                 val tmp = revitIdMap[obj.owner!!]
                 obj.belong = tmp!!.id
                 obj.belongType = tmp.elementType
+                obj.belongBimId = "${bimIdPrefix}${tmp.sourceId}"
             }
             if(obj.revitId != null && obj.revitId!!.isNotEmpty())
                 connectorMap[obj.revitId!!] = obj.id!!