Revit抽取族参数信息

来源:互联网 发布:mysql添加表分区 编辑:程序博客网 时间:2024/06/06 10:02

Reading an RVT File without Revit

A huge number of developers have requested a possibility to read or even write an RVT file without running Revit, similar to the possibility to read and write a DWG file without AutoCAD installed.

For the latter, one option that has been around for ages is to make use of the RealDWG library for reading and writing DWG files.

A more recent and future oriented option is provided by the cloud-based AutoCAD I/O web service.

Here is yet another variation on this query:

Question: Is there any way that I can read a Revit model without having Revit installed on the users machine?

I'm thinking something similar to RealDWG for AutoCAD?

The closest I was able to find is your discussion of Open Revit OLE Storage.

However, I got the impression that this provides very limited and that it would not enable to extract, say, specific wall properties.

Answer: Yes, the method that you refer to is extremely limited in the scope of information that can be accessed.

It is based on OLE structured storage, COM Structured Storage and the Compound File Binary Format.

One additional aspect of the structure storage format is that it also enables access to so-called custom file properties on RVT and RFA files, since they are standard Windows properties stored there.

Here is another recent short overview on programmatically generating Revit family RFA files.

There is a little bit more data that can indeed be accessed from family definition RFA files without running Revit using the Application ExtractPartAtomFromFamilyFile method:

  • Extract Part Atoms
  • Extract Part Atom Revisited

Regarding the question you raise on full access to the RVT file contents without a Revit session up and running, we recently published a request for wishes concerning that area: