Revit and Autodesk add-ins use the CEFsharp library internally for several features. Some third-party add-ins do so as well. Occasionally, when different versions of the library are used, it leads to instability issues for Revit. In order to avoid version conflicts, we are clarifying what CEFsharp version is being used, and loading it prior to all add-in initializations.
The elements used for the Structural Analytical Model have been completely replaced and the interactions overhauled in this version of Revit. Because of these changes, many pre-existing API classes and methods have been removed immediately in this release as deprecation was not possible. The classes that are impacted are all in the Autodesk.Revit.DB.Structure namespace.
|
Removed API |
Replacement |
|
AnalyticalModel |
AnalyticalElement |
|
AnalyticalModelStick |
AnalyticalMember |
|
AnalyticalModelColumn |
AnalyticalMember |
|
AnalyticalModelSupport |
None |
|
AnalyticalConsistencyChecking |
None |
|
AnalyticalModelSketchComponent |
None |
|
AnalyticalModelSurface |
AnalyticalPanel |
This new API is part of a broader Analytical Driven Modeling initiative for Revit that introduces a new approach to analytical modelling, enhancing its overall structural modelling capabilities. See the RevitAPI.chm for a full listing of new functions.
New classes include:
|
Removed API |
|
AnalyticalCurveType |
|
AnalyticalDirection |
|
AnalyticalProjectionType |
|
Removed API |
Replacement |
|
Element.GetAnalyticalModel |
AnalyticalToPhysicalRelationManager.GetCounterpartsIds |
|
Element.GetAnalyticalModelId |
AnalyticalToPhysicalRelationManager.GetCounterpartsIds |
The following properties have been removed:
|
Removed API |
|
AnalyticalModelAutoCheckMemberSupports |
|
AnalyticalModelAutoCheckConsistency |
|
AnalyticalModelCheckSupportDistance |
|
AnalyticalModelCheckBeamSlabDistance |
|
AnalyticalModelCheckInstability |
|
DifferentiateAnalyticalEnds |
|
AnalyticalModelCheckAdjustment |
|
CheckAnalyticalModelAsset |
|
AnalyticalModelSupportDistanceTolerance |
|
AnalyticalModelDiscrepancyTolerance |
|
AnalyticalModelHorizontalAutofixTolerance |
|
AnalyticalModelVerticalAutofixTolerance |
|
AnalyticalModelCheckCircularReferences |
|
AnalyticalModelCheckDiscrepancy |
|
AnalyticalLinkAutofixTolerance |
|
Removed API |
Replacement |
|
Autodesk.Revit.DB.Structure.LineLoad.Create(Document doc, AnalyticalModelStick host, XYZ forceVector1, XYZ momentVector1, LineLoadType symbol) |
Autodesk.Revit.DB.Structure.LineLoad.Create(Document doc, hostElemId, XYZ forceVector1, XYZ momentVector1, LineLoadType symbol) |
|
Autodesk.Revit.DB.Structure.LineLoad.Create(Document doc, AnalyticalModelSurface host, int curveIndex, XYZ forceVector1, XYZ momentVector1, LineLoadType symbol) |
Autodesk.Revit.DB.Structure.LineLoad.Create(Document doc, hostElemId, int curveIndex, XYZ forceVector1, XYZ momentVector1, LineLoadType symbol) |
|
Autodesk.Revit.DB.Structure.AreaLoad.Create(Document doc, AnalyticalModelSurface host, XYZ forceVector1, AreaLoadType symbol) |
Autodesk.Revit.DB.Structure.AreaLoad.Create(Document doc, hostElemId, XYZ forceVector1, AreaLoadType symbol) |
|
Autodesk.Revit.DB.Structure.PointLoad.Create(Document doc, AnalyticalModelStick host, AnalyticalElementSelector selector, XYZ forceVector, XYZ momentVector, PointLoadType symbol) |
Autodesk.Revit.DB.Structure.PointLoad.Create(Document doc, hostId, AnalyticalElementSelector selector, XYZ forceVector, XYZ momentVector, PointLoadType symbol) |
|
Autodesk.Revit.DB.Structure.PointLoad.Create(Document doc, AnalyticalModel host, XYZ forceVector, XYZ momentVector, PointLoadType symbol) |
None |
|
Removed API |
Replacement |
|
Autodesk.Revit.DB.Structure.LoadBase.HostElement |
HostElementId |
|
Removed API |
Replacement |
|
Autodesk.Revit.DB.Structure.BoundaryConditions.HostElement |
HostElementId |
The class BoundingBoxXYZ:
description was updated to mention that the bounding box might not be empty even if the element's Geometry property returns an empty result, because GetBoundingBox does not take the Geometry property's Options into account.
The property Element Symbol of the GeometryInstance was deprecated.
The replacement is GeometryInstance.GetDocument().GetElement(GeometryInstance.GetSymbolGeometryId().SymbolId)
Deprecated Methods:
GroupNode is the base class for InstanceNode and LinkNode
| Deprecated API | Replacement |
|---|---|
| GroupNode.GetSymbolId() | The replacement for LinkNode is the property LinkNode.SymbolId |
|
|
The replacement for InstanceNode is InstanceNode.GetSymbolGeometryId() |
The Enum STLExportResolution has been deprecated and replaced:
| Deprecated API | Replacement |
|---|---|
| STLExportResolution enum | ExportResolution enum |
| Deprecated API | Replacement |
|---|---|
| STLExportOptions(STLExportResolution) | STLExportOptions(ExportResolution) |
| STLExportOptions.SetTessellationSettings(STLExportResolution) | STLExportOptions.SetTessellationSettings(ExportResolution) |
The property:
is modified to cover all scenarios. Previously, it was only for the spaces created with the mode 'Use Rooms or Spaces', and represented the enclosed area measured by interior bounding surfaces. The additional cases include the spaces created with mode 'Use Building Elements' and 'Use Conceptual Masses and Building Elements', where the area is measured by the center plane of walls and the top plane of roofs and floors.
| Deprecated API | Replacement |
|---|---|
|
EnergyAnalysisSpace.InnerVolume |
EnergyAnalysisSpace.Volume |
|
EnergyAnalysisSpace.AnalyticalVolume |
EnergyAnalysisSpace.Volume |
Conceptual Masses
A number of classes and methods related to using Conceptual Masses in Energy Analysis have been deprecated. These are replaced by classes and methods in detailed energy analysis.
|
Deprecated API |
Replacement |
|---|---|
| DB.Analysis.AnalysisMode.ConceptualMasses | ConceptualMassesAndBuildingElements |
| DB.Analysis.EnergyDataSettings.setCreateAnalyticalModel() | Use EnergyModel property instead. |
| DB.Analysis.EnergyDataSettings.enableConceptualEnergyAnalyticalModel() | Use EnergyModel property instead. |
| DB.Analysis.MassGBXMLExportOptions | GBXMLExportOptions |
| DB.Analysis.MassEnergyAnalyticalMode | EnergyAnalyticalDetailModel |
| DB.Analysis.MassZone | EnergyAnalyticalDetailModel and EnergyAnalysisSpace |
|
DB.Analysis.MassLevelData |
EnergyAnalyticalDetailModel EnergyAnalysisSpace |
|
DB.Analysis.MassSurfaceData |
EnergyAnalyticalDetailModel and EnergyAnalysisSurface |
The following methods were deprecated due to the fact that the Reinforcement elements representation as solid in a 3D view will be done automatically on Fine detail level. There are no replacements for these capabilities because the geometry is handled automatically.
|
Deprecated API |
|---|
|
Rebar.IsSolidInView() |
| Rebar.SetSolidInView() |
| AreaReinforcement.IsSolidInView() |
| AreaReinforcement.SetSolidInView() |
| PathReinforcement.IsSolidInView() |
| PathReinforcement.SetSolidInView() |
| RebarInSystem.IsSolidInView() |
| RebarInSystem.SetSolidInView() |
| FabricSheet.IsSolidInView() |
| FabricSheet.SetSolidInView() |
| RebarContainer.IsSolidInView() |
| RebarContainer.SetSolidInView() |
The enum value Autodesk.Revit.DB.BrowserOrganizationType.Families of BrowserOrganizationType will no longer be exposed to the public API, as there was no user-facing way to use the value.
The following API members and classes which had previously been marked Deprecated have been removed in this release. Consult the API documentation from prior releases for information on the replacements to use:
The new class:
returns the heights of schedule title, column header and each body row on sheet view.
The new method:
will return the heights object.
The new methods:
provide the ability to split schedules and manage schedule segments.
The new method:
will return the schedule sheet instances for a schedule segment.
The new methods:
provide the ability to place a schedule segment on sheet and to get and set the schedule segment instance's segment index.
The new property:
indicates if the schedule is set to filter by sheet.
The new method:
checks whether a schedule can be filtered by sheet.
The new method:
supports deleting of worksets from the model. It takes a DeleteWorksetSettings input with options for what to do with elements contained by that workset.
The new property:
checks if the bounding box is Enabled and not empty.
The new class
is used to identify a piece of geometry managed by a symbol element. Can be used to compare if two instances point to the same piece of geometry managed by a symbol element.
The new method:
this will convert the SymbolGeometryId to a string that can be used in comparisons to see if two instances point to the same piece of geometry managed by the same symbol element.
The new property:
The id of the symbol that is containing the geometry that is shared.
The new property:
provides API-level control for whether a given DirectShapeType will appear in the type selector drop-down in the Revit user interface and whether an existing DirectShape can have its type changed to the given DirectShapeType.
The new class:
allows user to determine the import options when importing an AXM file.
The new method:
imports an AXM file into the document.
The new method:
checks if the Import FormIt function is available.
The new method:
supports export of Revit geometry to OBJ format. It uses a new class containing the options available for export:
The new methods:
provide support for import and linking of files of STL and OBJ formats. These methods use new classes representing the options for each of the new formats.
The new enumerations:
allows user to import data from more file types.
The new enum:
allows you to indicate what information should be copied when duplicating a sheet. Its values are:
The new methods:
allows you to duplicate sheets and identify sheets which can be duplicated.
New methods in View and TransformWithBoundary allow you to transform between model space and a view's projection space:
Two new methods allow you to transform between a view's projection space and sheet space:
The new enum:
indicates whether the View is placed on a Sheet. Some Views can be placed on one or more Sheets completely or partially. For example, a Schedule divided in segments, and only some of them are placed on Sheets.
The new method
determines if this view placed on a sheet completely or partially.
Viewports placed on sheets can now have the associated view swapped to another view in the model. The property:
is now editable.
The new members:
The new read only property:
indicates if this load classification is to be used for spare.
The new method:
allows an application to set the lock state for a circuit slot at specific cell.
The new class:
represents an electrical analytical node.
The new enum:
The new properties:
The new methods:
The new class:
represents the data and parameters of analytical bus node.
The new properties:
The new method:
The new class:
represents the data and parameters of electrical analytical node.
The new property:
The new class:
represents the data and parameters of point load node.
The new properties:
The new enum:
The new class:
represents an area based load type in Autodesk Revit.
The new properties:
The new method:
The new class:
represents the electrical area based load data.
The new methods:
The new properties:
The new class
represents the electrical load area data.
The new methods:
The new class
wrapper class used to access area based load boundary line related data.
The new properties:
The new methods:
The new class:
represents the data and parameters of electrical analytical transfer switch.
The new properties:
The new method:
The new class:
represents the data and parameters of an analytical power source node.
It has the following properties:
The new class:
a base class for specific domain requirements for a zone.
The new method:
creates a new instance of an area based load and adds it to the document.
The new methods:
The new property:
identifies whether an element can be modified or not. The state of the property depends on the document state. For example, active edit modes can make IsModifiable false for many elements.
Material assets and Decal images are supported with external resource references now.
The new methods:
GetExternalResourceReferencesExpanded() - Gets the expanded map of the external resource references referenced by the element.
GetExternalResourceReferenceExpanded() - Gets the collection of ExternalResourceReference associated with a specified external resource type.
allow users to access the ExternalResourceReferences for an element which might contain multiple references for a specific type. This allows working with Material assets and Decal images, for example.
The new property:
the Autodesk.Revit.DB.BuiltInCategory value for the category or Autodesk.Revit.DB.BuiltInCategory.INVALID if the category is not a built-in category.
The new class:
allows users to see which elements have changed since a previous version of the document. Note that the version refers to a DocumentVersion object and not the Revit release which the document was last saved in.
The new method:
gets the current document version.
The new method:
returns a collection of the elements which have changed between the input version and the document's current version.
The new enumeration:
allows users to set how leaders should be displayed on a tag. It has the following values:
The new property
identifies if the leader's elbows are merged or not
The new methods
returns whether the leader that points to the specified reference is visible or not.
sets the visibility of the leader that points to the specified reference to be visible or not.
The new property:
this value is the enclosed volume measured by interior bounding surfaces if the spaces are created with the mode 'Use Rooms or Spaces'. Otherwise, this value is the average of the analytical volume and the voxel volume. Note that the analytical volume is measured by the center plane of walls and the top plane of roofs and floors, and the voxel volume is measured by the number of enclosed unit cubes.
The new method
gets the collection of planar polygons describing the surface/opening geometry. A collection of polyloops (planar polygons) describing the opening geometry as described in gbXML. The geometry is currently measured per analytical(center-line).
The new method:
allows users to pick edges on a floor and convert them from folding lines to split lines.
The new property
indicates whether or not to show the graphical open ends for Area Based Load Boundary disconnects.
The new method
starts a sketch edit mode for an element which, at this moment, doesn't have a sketch. Some surface Revit elements (like some Walls or some Analytical Elements) does not have a valid sketch all the time so in order to edit them, we have to create a valid sketch first.
The method:
and its overrides can now support creation of dimensions in Sketch Edit mode. If users need to create dimensions in the sketch they must call this method under sketch edit mode, passing the view parameter as null and using sketch entities as dimension references. The method signatures were not changed but descriptions have been updated.
The method:
and its overrides can now support creation of dimensions in Sketch Edit mode. If users need to create dimensions in the sketch they must call this method under sketch edit mode, passing the view parameter as null and using sketch entities as dimension references. The method signatures were not changed but descriptions have been updated.
The new method:
The new methods:
The new property
represents the browser organization type.
The new class:
provides access to settings that control Revit's Project Browser appearance and functionality. These settings are stored in the Revit.ini file. All documents in Revit instances which use this Revit.ini will follow these settings.
The new property:
show the icons indicating view placement on sheet status. If true, the icons indicating view placement on sheet status will be shown at every view or schedule node in the Project Browser. If false, the icons indicating view placement on sheet status will not be shown.
The new methods:
Autodesk.Revit.DB.Structure.AreaLoad.isValidHostId() - Indicates if the provided host id can host line loads.
The new methods:
The new methods:
The new class:
a utility class containing functions that can be used to propagate rebar elements.
The new methods:
The new method:
The new property:
The new methods:
The new events:
The new class:
the event arguments used by the SelectionChanged event.
The new methods:
The new method:
changes the connector host reference by plane reference alone, or plane reference plus an edge. The plane reference alone would allow the connector position to move along the plane later, while the plane reference plus an edge fixes the connector position by the edge loop.
The new class
a base class for specific domain requirements for a spatial element.
The new method:
gets the domain data for the spatial element. The domain data contains information of different spatial elements, such as electrical load area. Currently room/space/area don't have domain data.
The new method:
flips a directionally oriented fabrication part (tees, crosses, valves, dampers, etc.) to the opposite direction. Existing connections will be maintained. Disconnect warnings will be posted if the connection cannot be maintained.
The new method:
checks whether an ElementId identifies a built-in parameter. An ElementId identifies a built-in parameter if it corresponds to a valid BuiltInParameter value.
Autodesk.Revit.DB.IViewSheetSet now supports ordered view sheet list inside. You can now access or arrange the list utilizing the new APIs. Lists can be ordered either automatically or manually, which is controlled by the property IViewSheetSet.IsAutomatic. If the list in under automatic mode, the list will be ordered by Sheet/View organization. You can set them with IViewSheetSet.SheetOrganizationId and IViewSheetSet.ViewOrganizationId. For Manual ordering, you can set IViewSheetSet.OrderedViewList.