【问题标题】:IfcRoof won't work without own ShapeRepresentation如果没有自己的 ShapeRepresentation,IfcRoof 将无法工作
【发布时间】:2021-05-28 07:24:49
【问题描述】:

我尝试使用 IfcSlab 创建一个平屋顶。 IfcRoof 应该由 IfcSlab 分解。我用 ShapeRepresentation 创建了板并给了它坐标。 BuidlingSMART 是说,当楼板已经有了 ShapeRespresentation 时,我的屋顶不需要 ShapeRespresentation。但是当我运行我的应用程序并尝试在 Xplorer 中查看我的模型时,它显然不起作用。屋顶不存在,但是当我为屋顶创建自己的 ShapeRepresentation 时,它可以工作。

这就是我想用板创建屋顶的方式:

var aggregation = model.Instances.New<IfcRelAggregates>();
                aggregation.RelatingObject = slabRoof;
                aggregation.RelatedObjects.Add(roof);

有没有一种方法可以在没有额外的 ShapeRepresentation 的情况下创建这个屋顶平台,就像在 buildingSMART 中所写的那样?

【问题讨论】:

    标签: c# ifc xbim


    【解决方案1】:

    您可能已经反转了聚合关系。对于IfcRelAggregatesRelatingObject 一侧应指整体(即IfcRoof),RelatedObjects 一侧应指部分(即IfcSlab)。如果反其道而行之,查看者将找不到屋顶的任何几何部分,也不会显示任何内容。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-03-29
      • 2015-09-19
      • 1970-01-01
      • 1970-01-01
      • 2011-05-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多