简体   繁体   English

C#读取ifc / BIM文件进行序列化-反序列化

[英]C# read ifc / BIM file serilialize - deserialize

I'm completely new with IFC files. 我对IFC文件是全新的。 For my company I need to read IFC files see http://www.kleinhandel.nl/test.ifc for example. 对于我的公司,我需要阅读IFC文件,例如,请参见http://www.kleinhandel.nl/test.ifc I don't know how to read this in C#. 我不知道如何在C#中阅读此内容。 I guess I need to de-serialize it, but how? 我想我需要反序列化它,但是如何?

I've found this website, but there are no downloads available :( 我已经找到了这个网站,但是没有可用的下载内容:(

http://code.google.com/p/ifc-dotnet/ http://code.google.com/p/ifc-dotnet/

I know this is quite an old question but if anybody was interested you can also have a look at xBIM Toolkit . 我知道这是一个很老的问题,但是如果有人感兴趣,您也可以看看xBIM Toolkit You can either use source code or NuGet packages. 您可以使用源代码或NuGet包。 It implements 100% of IFC2x3 and IFC4 and it provides interfaces to write uniform code for both schemas. 它实现了100%的IFC2x3和IFC4,并提供了接口来为两种模式编写统一的代码。

It is .NET, written in C#. 它是用C#编写的.NET。 Examples and documentation is available here 此处提供示例和文档

Disclaimer: I'm one of the developers of xBIM Toolkit. 免责声明:我是xBIM工具包的开发人员之一。

See http://code.google.com/p/ifc-dotnet/source/checkout . 请参阅http://code.google.com/p/ifc-dotnet/source/checkout You can check the source out with subversion. 您可以使用subversion将源签出。

svn checkout http://ifc-dotnet.googlecode.com/svn/trunk/ ifc-dotnet-read-only

I use DDS Viewer to view and program modules to IFC files (using C#). 我使用DDS Viewer来查看模块并将其编程为IFC文件(使用C#)。 Unfortunately the viewer doesn't allow write capabilities as yet. 不幸的是,查看器尚未允许写入功能。 But at least you can read and at least you can view and query the model. 但是至少您可以阅读并且至少可以查看和查询模型。 Additionally, DDS Viewer allows Javascript access to the model. 此外,DDS Viewer允许Javascript访问模型。

You can find the tool here: http://www.dds-cad.net/132x2x0.xhtml 您可以在此处找到该工具: http : //www.dds-cad.net/132x2x0.xhtml

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

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