简体   繁体   English

如何以编程方式访问 IFC 映射文件?

[英]How to access IFC mapping file programmatically?

Does Revit API provide a way to access IFC mapping file programmatically? Revit API 是否提供了一种以编程方式访问 IFC 映射文件的方法?

I guess I can navigate to the file using the standard methods that manipulate files on a file system, but I was wondering if Revit has a way to it easier.我想我可以使用操作文件系统上文件的标准方法导航到文件,但我想知道 Revit 是否有更简单的方法。

我不知道 Revit 或其 API 对此有任何额外支持。

Have you had a look through the Autodesk IFC exporter code on GitHub?您是否查看过 GitHub 上的 Autodesk IFC 导出器代码? I'd imagine they must be accessing the mapping in there somehow.我想他们一定是在以某种方式访问​​那里的映射。

ExporterUtil.GetExportType() looks a good place to start: ExporterUtil.GetExportType()看起来是个不错的起点:

https://github.com/Autodesk/revit-ifc/blob/2810c479e27819da97656759a1dda28cbdde0538/Source/Revit.IFC.Export/Utility/ExporterUtil.cs#L1433 https://github.com/Autodesk/revit-ifc/blob/2810c479e27819da97656759a1dda28cbdde0538/Source/Revit.IFC.Export/Utility/ExporterUtil.cs#L1433

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

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