Closed ashvinisawantsofttechengr closed 2 months ago
public override string GetPlotName(BIMDCREnums.clsEnums.ModelType model, int buildingNo) { string Name = string.Empty; try { var m_compIFCSite = ClsECC.m_clsExecCtxCmp.GetComponent(model, BIMDCREnums.clsEnums.EC.IFCSITE, buildingNo); foreach (Component compsurface in m_compIFCSite.GetSubcomponents()) { Name = compsurface.GetName(); } } catch (System.Exception) {
throw;
} return Name; }
Want to get subcomponent of IfcSite.
Does this example help? https://docs.xbim.net/examples/spatial-hierarchy.html
public override string GetPlotName(BIMDCREnums.clsEnums.ModelType model, int buildingNo) { string Name = string.Empty; try { var m_compIFCSite = ClsECC.m_clsExecCtxCmp.GetComponent(model, BIMDCREnums.clsEnums.EC.IFCSITE, buildingNo); foreach (Component compsurface in m_compIFCSite.GetSubcomponents()) { Name = compsurface.GetName(); } } catch (System.Exception) {
if DEBUG
endif
Want to get subcomponent of IfcSite.