Revit 2011 可否用API來鏈接 Rvt 文件?

原文鏈接:https://www.eabim.net/thread-170196-1-19.html?_dsign=c36dd404

問:

REVIT 2011的API中如何實現鏈接rvt文件。
sdk裏面chm文件裏面好像只有導入CAD的。
我需要在我的rvt文件裏面導入另外幾個rvt文件進來並顯示。

下圖爲Revit 2020 API ,表明:導入和鏈接均不提供對 RVT 文件的操作。

答覆:

Revit 2011沒有提供API來連接外部rvt文件。

Revit 2012 也沒有開放鏈接外部rvt的API,但是2012提供了更多的對已經連接進來的模型的管理和查詢。

  • ExternalFileReference - A non-Element class which contains path and type information for a single external file which a Revit project references. ExternalFileReference also contains information about whether the external file was loaded or unloaded the last time the associated Revit project was opened.
  • ExternalFileUtils - A utility class which allows the user to find all external file references, get the external file reference from an element, or tell whether an element is an external file reference.
  • RevitLinkType - An element representing a Revit file linked into a Revit project.
  • CADLinkType - An element representing a DWG drawing. CADLinkTypes may be links, which maintain a relationship with the file they originally came from, or imports, which do not maintain a relationship. The property IsImport will distinguish between the two kinds.
  • LinkType - The base class of RevitLinkType and CADLinkType.
  • ModelPath - A non-Element class which contains path information for a file (not necessarily a .rvt file.) Paths can be to a location on a local or network drive, or to a Revit Server location.
  • ModelPathUtils - A utility class which provides methods for converting between strings and ModelPaths.
  • TransmissionData - A class which stores information about all of the external file references in a document. The TransmissionData for a Revit project can be read without opening the document.
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章