简体   繁体   English

如何在 C# 中创建基本的 IFC 文件

[英]How to create basic IFC File in C#

As per Wiki, The Industry Foundation Classes (IFC) data model is intended to describe architectural, building and construction industry data.根据 Wiki,行业基础类 (IFC) 数据模型旨在描述建筑、建筑和施工行业数据。

The Industry Foundation Classes (IFC) data model is a neutral and open specification that is not controlled by a single vendor or group of vendors.行业基础类 (IFC) 数据模型是一种中立且开放的规范,不受单个供应商或一组供应商的控制。 It is an object oriented file format with a data model developed by buildingSMART (International Alliance for Interoperability, IAI) to facilitate interoperability in the building industry, and is a commonly used format for Building Information Modeling (BIM).它是一种面向对象的文件格式,具有由 buildingSMART(国际互操作性联盟,IAI)开发的数据模型,以促进建筑行业的互操作性,是建筑信息模型 (BIM) 的常用格式。

For example One could be developing virtual building model in Revit, then send it to interior team who use ArchiCAD.例如,可以在 Revit 中开发虚拟建筑模型,然后将其发送给使用 ArchiCAD 的内部团队。 It might also be sent to engineers who use Tekla.它也可能会发送给使用 Tekla 的工程师。 Before the IFC standard file type this would have been a nightmare.在 IFC 标准文件类型之前,这将是一场噩梦。 As Revit, ArchiCAD, Tekla can talk to each other, but not easily!!! Revit、ArchiCAD、Tekla 可以互相交流,但并不容易!!!

IFC aims to solve this problem, so that it won't matter so much.国际金融公司旨在解决这个问题,这样它就不会那么重要了。 IFC file is unified format which can be understood by other CAD Softwares as well. IFC 文件格式统一,其他 CAD 软件也可以理解。

My Organisation works on one of the CAD Software and they want to export there Models in IFC so that it can be open and viewed in Other software's as well like Revit, ArchiCAD, Tekla.我的组织在其中一个 CAD 软件上工作,他们希望在 IFC 中导出模型,以便可以在其他软件以及 Revit、ArchiCAD、Tekla 等其他软件中打开和查看。

So Our use case is, we need to create a IFC file of such a model.所以我们的用例是,我们需要创建这样一个模型的 IFC 文件。

So as per this Post, I am planning to use xBim.所以根据这篇文章,我打算使用 xBim。 This link这个链接

I am using xBim Library to Create IFC File in C#.我正在使用 xBim 库在 C# 中创建 IFC 文件。 As per xBim documentation and Sample Code, I found that, How to create a Simple wall.根据 xBim 文档和示例代码,我发现如何创建简单的墙。

Now I want to create a basic Xbim.Ifc4.HvacDomain.IfcPump.现在我想创建一个基本的 Xbim.Ifc4.HvacDomain.IfcPump。

Can someone help me how to create one Xbim.Ifc4.HvacDomain.IfcPump in IFC using xBim C#?有人可以帮助我如何使用 xBim C# 在 IFC 中创建一个 Xbim.Ifc4.HvacDomain.IfcPump 吗?

I am new in CAD development and hence I am finding difficulties to understand the IFC.我是 CAD 开发的新手,因此我很难理解 IFC。 Please do the needful.请只做那些需要的。

I hope this much information will be helpful,enough and clear.我希望这么多信息会有所帮助,足够清晰。

Thanks in advance!!!提前致谢!!!

Without an example of code of what have you tried is difficult to help, but you can find resources in the API of XBim .没有您尝试过的代码示例很难提供帮助,但是您可以在XBim 的 API 中找到资源。 With the examples of how to setup a wall in the document and the API documentation you should have clues to how to start your program, once you have some code, you can clarify the question so the community can help you more efficiently.通过文档中的如何设置墙的示例和 API 文档,您应该对如何启动程序有了一些线索,一旦您有了一些代码,您就可以澄清问题,以便社区可以更有效地帮助您。

About how the IFC works and is written, you can find all you need to know here if you use a different version check the this website , in the IFC documentation the pump you are looking for is here .关于 IFC 的工作原理和编写方式,如果您使用不同的版本,您可以 在此处找到您需要了解的所有信息,请查看此网站,在 IFC 文档中您正在寻找的泵 在这里

I hope this resources are useful for you task.我希望这些资源对您的任务有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM