< Rev API Docs

The DocumentEntryPoint type exposes the following members.

Methods

  NameDescription
Public methodAcquireCoordinates
Acquires coordinates from the specified link instance.
(Inherited from Document.)
Public methodAutoJoinElements
Forces the elements in the Revit document to automatically join to their neighbors where appropriate.
(Inherited from Document.)
Public methodCanEnableCloudWorksharing
Checks if cloud worksharing can be enabled for the cloud model.
(Inherited from Document.)
Public methodCanEnableWorksharing
Checks if worksharing can be enabled in the document.
(Inherited from Document.)
Public methodClose()()()()
Closes the document, save the changes if there are.
(Inherited from Document.)
Public methodClose(Boolean)
Closes the document with the option to save.
(Inherited from Document.)
Public methodCombineElements
Combine a set of combinable elements into a geometry combination.
(Inherited from Document.)
Public methodConvertDetailToModelCurves
Converts a group of DetailCurves to equivalent ModelCurves.
(Inherited from Document.)
Public methodConvertModelToDetailCurves
Converts a group of ModelCurves to equivalent DetailCurves.
(Inherited from Document.)
Public methodConvertModelToSymbolicCurves
Converts a group of ModelCurves to equivalent SymbolicCurves.
(Inherited from Document.)
Public methodConvertSymbolicToModelCurves
Converts a group of SymbolicCurves to equivalent ModelCurves.
(Inherited from Document.)
Public methodDelete(ElementId)
Deletes an element from the document given the id of that element.
(Inherited from Document.)
Public methodDelete(ICollection<(Of <<'(ElementId>)>>))
Deletes a set of elements from the document.
(Inherited from Document.)
Public methodDispose (Inherited from Document.)
Public methodEditFamily
Gets the document of a loaded family to edit.
(Inherited from Document.)
Public methodEnableCloudWorksharing
Enables cloud worksharing for a cloud model
(Inherited from Document.)
Public methodEnableWorksharing
Enables worksharing in the document.
(Inherited from Document.)
Public methodEquals
Determines whether the specified Object equals to this Object.
(Inherited from Document.)
Public methodEraseSchemaAndAllEntities
Erases Schema and all its Entities from the document.
(Inherited from Document.)
Public methodExport(String, IList<(Of <<'(ElementId>)>>), PDFExportOptions)
Exports a selection of views in PDF format.
(Inherited from Document.)
Public methodExport(String, String, GBXMLExportOptions)
Export the model in gbXML (green-building) format.
(Inherited from Document.)
Public methodExport(String, String, IFCExportOptions)
Exports the document to the Industry Standard Classes (IFC) format.
(Inherited from Document.)
Public methodExport(String, String, NavisworksExportOptions)
Exports a Revit project to the Navisworks .nwc format.
(Inherited from Document.)
Public methodExport(String, String, OBJExportOptions)
Exports a view specified in the export options to the OBJ format.
(Inherited from Document.)
Public methodExport(String, String, STLExportOptions)
Exports a view specified in the export options to the STL format.
(Inherited from Document.)
Public methodExport(String, String, ViewSet, DWFExportOptions)
Exports the current view or a selection of views in DWF format.
(Inherited from Document.)
Public methodExport(String, String, ViewSet, DWFXExportOptions)
Exports the current view or a selection of views in DWFX format.
(Inherited from Document.)
Public methodExport(String, String, ViewSet, FBXExportOptions)
Exports the document in 3D-Studio Max (FBX) format.
(Inherited from Document.)
Public methodExport(String, String, ICollection<(Of <<'(ElementId>)>>), DGNExportOptions)
Exports a selection of views in DGN format.
(Inherited from Document.)
Public methodExport(String, String, ICollection<(Of <<'(ElementId>)>>), DWGExportOptions)
Exports a selection of views in DWG format.
(Inherited from Document.)
Public methodExport(String, String, ICollection<(Of <<'(ElementId>)>>), DXFExportOptions)
Exports a selection of views in DXF format.
(Inherited from Document.)
Public methodExport(String, String, ICollection<(Of <<'(ElementId>)>>), SATExportOptions)
Exports the current view or a selection of views in SAT format.
(Inherited from Document.)
Public methodExportImage
Exports a view or set of views into an image file.
(Inherited from Document.)
Public methodFinishInitializationEO
For Revit Macros internal use only.
Public methodGetAllUnusedElements
Returns the list of element ids that are not used. The list of unused element ids may include elements that can't be deleted.
(Inherited from Document.)
Public methodGetChangedElements
Extracts a collection containing the ids of elements that have been created, modified or deleted between the input baseVersion and the document's current version.
(Inherited from Document.)
Public methodGetCloudFolderId
Gets ForgeDM folder id where the model locates.
(Inherited from Document.)
Public methodGetCloudModelPath
Gets the cloud model path of the cloud model.
(Inherited from Document.)
Public methodGetCloudModelUrn
A ForgeDM Urn identifying the model.
(Inherited from Document.)
Public methodGetDefaultElementTypeId
Gets the default element type id with the given DefaultElementType id.
(Inherited from Document.)
Public methodGetDefaultFamilyTypeId
Gets the default family type id with the given family category id.
(Inherited from Document.)
Public methodGetDocumentPreviewSettings
Returns the preview settings for the given document.
(Inherited from Document.)
Public methodGetElement(String)
Gets the Element referenced by a unique id string.
(Inherited from Document.)
Public methodGetElement(ElementId)
Gets the Element referenced by the input ElementId.
(Inherited from Document.)
Public methodGetElement(Reference)
Gets the Element referenced by the input reference.
(Inherited from Document.)
Public methodGetHashCode
Gets the hash code of this document instance.
(Inherited from Document.)
Public methodGetHubId
Gets ForgeDM hub id where the model locates. It is cached in session.
(Inherited from Document.)
Public methodGetPaintedMaterial
Get the material painted on the element's face. Returns invalidElementId if the face is not painted.
(Inherited from Document.)
Public methodGetPrintSettingIds
Retrieves all Print Settings of current project.
(Inherited from Document.)
Public methodGetProjectId
Gets ForgeDM project id where the model locates.
(Inherited from Document.)
Public methodGetRoomAtPoint(XYZ)
Gets a room containing the point.
(Inherited from Document.)
Public methodGetRoomAtPoint(XYZ, Phase)
Gets a room containing the point.
(Inherited from Document.)
Public methodGetSpaceAtPoint(XYZ)
Gets a space containing the point.
(Inherited from Document.)
Public methodGetSpaceAtPoint(XYZ, Phase)
Gets a space containing the point.
(Inherited from Document.)
Public methodGetSubelement(String)
Gets the subelement referenced by a unique id string.
(Inherited from Document.)
Public methodGetSubelement(Reference)
Gets the subelement referenced by the input reference.
(Inherited from Document.)
Public methodGetSubelement(ElementId, Int32)
Gets the subelement referenced by a parent id and subelement id.
(Inherited from Document.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeOfStorage
Get the storage type of the identified built-in parameter.
(Inherited from Document.)
Public methodGetUnits
Gets the Units object.
(Inherited from Document.)
Public methodGetUnusedElements
Returns the list of element ids that are not used and can be deleted from the document.
(Inherited from Document.)
Public methodGetWarnings
Returns list of failure messages generated from persistent (reviewable) warnings accumulated in the document.
(Inherited from Document.)
Public methodGetWorksetId
Get Id of the Workset which owns the element.
(Inherited from Document.)
Public methodGetWorksetTable
Get the WorksetTable of this document.
(Inherited from Document.)
Public methodGetWorksharingCentralModelPath
Gets the central model path of the worksharing model.
(Inherited from Document.)
Public methodHasAllChangesFromCentral
Returns whether the model in the current session is up to date with central.
(Inherited from Document.)
Public methodImport(String, GBXMLImportOptions)
Imports a Green-Building XML file into the document.
(Inherited from Document.)
Public methodImport(String, AXMImportOptions, View)
Imports an AXM file into the document.
(Inherited from Document.)
Public methodImport(String, ImportOptions3DM, View)
Imports a 3DM file into the document.
(Inherited from Document.)
Public methodImport(String, OBJImportOptions, View)
Imports an OBJ file into the document.
(Inherited from Document.)
Public methodImport(String, SATImportOptions, View)
Imports an SAT file into the document.
(Inherited from Document.)
Public methodImport(String, SKPImportOptions, View)
Imports a SKP file into the document.
(Inherited from Document.)
Public methodImport(String, STLImportOptions, View)
Imports an STL file into the document.
(Inherited from Document.)
Public methodImport(String, DGNImportOptions, View, ElementId%)
Imports a DGN file to the document.
(Inherited from Document.)
Public methodImport(String, DWGImportOptions, View, ElementId%)
Imports a DWG or DXF file to the document.
(Inherited from Document.)
Public methodInitialize
For Revit Macros internal use only.
Public methodIsBackgroundCalculationInProgress
Indicates whether there are any background calculations in progress for this document.
(Inherited from Document.)
Public methodIsDefaultElementTypeIdValid
Checks whether the element type id is valid for the give DefaultElmentType id.
(Inherited from Document.)
Public methodIsDefaultFamilyTypeIdValid
Checks whether the family type id is valid for the give family category.
(Inherited from Document.)
Public methodIsPainted
Checks if the element's face is painted with a material.
(Inherited from Document.)
Public methodLink(String, DWFImportOptions)
Links Markups in a DWF file into the project document.
(Inherited from Document.)
Public methodLink(String, ImportOptions3DM, View)
Links a 3DM file into the project document.
(Inherited from Document.)
Public methodLink(String, OBJImportOptions, View)
Links an OBJ file into the project document.
(Inherited from Document.)
Public methodLink(String, SATImportOptions, View)
Links an SAT file into the project document.
(Inherited from Document.)
Public methodLink(String, SKPImportOptions, View)
Links a SKP file into the project document.
(Inherited from Document.)
Public methodLink(String, STLImportOptions, View)
Links an STL file into the project document.
(Inherited from Document.)
Public methodLink(String, DGNImportOptions, View, ElementId%)
Links a DGN file into the project document.
(Inherited from Document.)
Public methodLink(String, DWGImportOptions, View, ElementId%)
Links a DWG or DXF file into the project document.
(Inherited from Document.)
Public methodLoadFamily(String)
Loads an entire family and all its types/symbols into the document.
(Inherited from Document.)
Public methodLoadFamily(Document)
Loads the contents of this family document into another document.
(Inherited from Document.)
Public methodLoadFamily(String, Family%)
Loads an entire family and all its types/symbols into the document and provides a reference to the loaded family.
(Inherited from Document.)
Public methodLoadFamily(Document, IFamilyLoadOptions)
Loads the contents of this family document into another document.
(Inherited from Document.)
Public methodLoadFamily(String, IFamilyLoadOptions, Family%)
Loads an entire family and all its types/symbols into the document and provides a reference to the loaded family.
(Inherited from Document.)
Public methodLoadFamilySymbol(String, String)
Loads only a specified family type/symbol from a family file into the document.
(Inherited from Document.)
Public methodLoadFamilySymbol(String, String, FamilySymbol%)
Loads only the specified family type/symbol from a family file into the document and provides a reference to the loaded family symbol.
(Inherited from Document.)
Public methodLoadFamilySymbol(String, String, IFamilyLoadOptions, FamilySymbol%)
Loads only the specified family type/symbol from a family file into the document and provides a reference to the loaded family symbol.
(Inherited from Document.)
Public methodMakeTransientElements
This method encapsulates the process of creating transient elements in the document.
(Inherited from Document.)
Public methodOnShutdownEO
For Revit Macros internal use only.
Public methodPaint(ElementId, Face, ElementId)
Paint the element's face with specified material.
(Inherited from Document.)
Public methodPaint(ElementId, Face, FamilyParameter)
Paint the element's face with specified material.
(Inherited from Document.)
Public methodPostFailure
Posts a failure to be displayed to the user at the end of transaction.
(Inherited from Document.)
Public methodPrint(ViewSet)
Prints a set of views with default view template and default print settings.
(Inherited from Document.)
Public methodPrint(ViewSet, View)
Prints a set of views with a specified view template and default print settings.
(Inherited from Document.)
Public methodPrint(ViewSet, Boolean)
Prints a set of views with default view template and default print settings.
(Inherited from Document.)
Public methodPrint(ViewSet, View, Boolean)
Prints a set of views with a specified view template and default print settings.
(Inherited from Document.)
Public methodPublishCoordinates
Publish coordinates to the specified ProjectLocation of the link instance.
(Inherited from Document.)
Public methodRegenerate
Updates the elements in the Revit document to reflect all changes.
(Inherited from Document.)
Public methodReloadLatest
Fetches changes from central (due to one or more synchronizations with central) and merges them into the current session.
(Inherited from Document.)
Public methodRemovePaint
Remove the material painted on the element's face. If the face is currently not painted,it will do nothing.
(Inherited from Document.)
Public methodResetSharedCoordinates
Reset shared coordinates for the host model/file.
(Inherited from Document.)
Public methodSave()()()()
Saves the document.
(Inherited from Document.)
Public methodSave(SaveOptions)
Saves the document.
(Inherited from Document.)
Public methodSaveAs(String)
Saves the document to a given file path.
(Inherited from Document.)
Public methodSaveAs(String, SaveAsOptions)
Saves the document to a given file path.
(Inherited from Document.)
Public methodSaveAs(ModelPath, SaveAsOptions)
Saves the document to a given path.
(Inherited from Document.)
Public methodSaveAsCloudModel
Saves current non-workshared or workshared model as a cloud model or workshared cloud model in BIM 360 Docs or Autodesk Docs.
(Inherited from Document.)
Public methodSaveCloudModel
Saves cloud model.
(Inherited from Document.)
Public methodSaveToProjectAsImage
Creates an image view from the currently active view.
(Inherited from Document.)
Public methodSeparateElements
Separate a set of combinable elements out of combinations they currently belong to.
(Inherited from Document.)
Public methodSetDefaultElementTypeId
Sets the default element type id of the given DefaultElementType id.
(Inherited from Document.)
Public methodSetDefaultFamilyTypeId
Sets the default family type id for the given family category.
(Inherited from Document.)
Public methodSetUnits
Sets the units.
(Inherited from Document.)
Public methodSynchronizeWithCentral
Performs reload latest until the model in the current session is up to date and then saves changes back to central. A save to central is performed even if no changes were made.
(Inherited from Document.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnpostFailure
Deletes the posted failure message associated with a given FailureMessageKey.
(Inherited from Document.)

See Also