Major changes and renovations to the Revit API |
All Revit dependencies on CefSharp have been modified to no longer have that dependency. Therefore, all the binaries of CefSharp have been removed from Revit's install. Note that there still may be dependency conflicts for different add-ins that depend on and load CefSharp for their own purposes, even without a Revit specified version.
A new option has been introduced for add-in developers to be able to run add-ins in a separate Assembly load context from Revit and from other add-ins.
Adoption of this feature is optional for this release. Developers can set the option "UseRevitContext" to false per add-in manifest (it applies to all registered add-ins in the given manifest). The default for add-ins where this is not specified is "true".
If the option is used, all add-ins loaded from the same folder will be placed into the same external context. Add-ins from different folder installation locations will go to different contexts.
Developers can also optionally set a custom ContextName for the add-in. If this is used, add-ins from different folder locations that use the same context name will be loaded into the same context.
Add-in developers are advised to check the dependencies that they load are correct and complete for their own add-in as they may no longer be able to rely on Revit or another add-in loading the dependency prior to the add-in being loaded.
Sample use of the new manifest flags:
In the RevitAddInUtility API, the new properties:
provide read and write access to these settings, while the new property:
provides access to the overall settings for a manifest.
The BuiltInParameter values related to classification and assembly codes have been renamed in the API to match changes made to the user interface.
| Original BuiltInParameter Entry | Original Parameter Name | Original ParameterTypeId | New BuiltInParameter Entry | New Parameter Name | New ParameterTypeId |
|---|---|---|---|---|---|
| OMNICLASS_CODE | OmniClass Number | ParameterTypeId.OmniclassCode | CLASSIFICATION_CODE | Classification Number | ParameterTypeId.ClassificationCode |
| OMNICLASS_DESCRIPTION | OmniClass Title | ParameterTypeId.OmniclassDescription | CLASSIFICATION_DESCRIPTION | Classification Title | ParameterTypeId.ClassificationDescription |
| UNIFORMAT_CODE | Assembly Code | ParameterTypeId.UniformatCode | ASSEMBLY_CODE | Assembly Code | ParameterTypeId.AssemblyCode |
| UNIFORMAT_DESCRIPTION | Assembly Description | ParameterTypeId.UniformatDescription | ASSEMBLY_DESCRIPTION | Assembly Description | ParameterTypeId.AssemblyDescription |
The BuiltInParameter values related to rebar hook end states were renamed with the introduction of rebar cranking options.
| Original BuiltInParameter Entry | Original Parameter Name | Original ParameterTypeId | New BuiltInParameter Entry | New Parameter Name | New ParameterTypeId |
|---|---|---|---|---|---|
| REBAR_SHAPE_HOOK_ROTATION_AT_START | Hook Rotation At Start | ParameterTypeId.RebarShapeHookRotationAtStart | REBAR_SHAPE_TERMINATION_ROTATION_AT_START | Rotation At Start | ParameterTypeId.RebarShapeTerminationRotationAtStart |
| REBAR_SHAPE_HOOK_ROTATION_AT_END | Hook Rotation At End | ParameterTypeId.RebarShapeHookRotationAtEnd | REBAR_SHAPE_TERMINATION_ROTATION_AT_END | Rotation At End | ParameterTypeId.RebarShapeTerminationRotationAtEnd |
| REBAR_HOOK_ROTATION_AT_START | Hook Rotation At Start | ParameterTypeId.RebarHookRotationAtStart | REBAR_TERMINATION_ROTATION_AT_START | Rotation At Start | ParameterTypeId.RebarTerminationRotationAtStart |
| REBAR_HOOK_ROTATION_AT_END | Hook Rotation At End | ParameterTypeId.RebarHookRotationAtEnd | REBAR_TERMINATION_ROTATION_AT_END | Rotation At End | ParameterTypeId.RebarTerminationRotationAtEnd |
| REBAR_HOOK_ROTATION_AT_START_SCHEDULES_TAGS_FILTERS | Hook Rotation At Start | ParameterTypeId.RebarHookRotationAtStartSchedulesTagsFilters | REBAR_TERMINATION_ROTATION_AT_START_SCHEDULES_TAGS_FILTERS | Rotation At Start | ParameterTypeId.RebarTerminationRotationAtStartSchedulesTagsFilters |
| REBAR_HOOK_ROTATION_AT_END_SCHEDULES_TAGS_FILTERS | Hook Rotation At End | ParameterTypeId.RebarHookRotationAtEndSchedulesTagsFilters | REBAR_TERMINATION_ROTATION_AT_END_SCHEDULES_TAGS_FILTERS | Rotation At End | ParameterTypeId.RebarTerminationRotationAtEndSchedulesTagsFilters |
| REBAR_FREE_FORM_HOOK_START_PLANE_ANGLE | Hook Orientation At Start | ParameterTypeId.RebarFreeFormHookStartPlaneAngle | No specific replacement; functionally replaced by REBAR_TERMINATION_ROTATION_AT_START (see above) | N/A | N/A |
| REBAR_FREE_FORM_HOOK_END_PLANE_ANGLE | Hook Orientation At End | ParameterTypeId.RebarFreeFormHookEndPlaneAngle | No specific replacement; functionally replaced by REBAR_TERMINATION_ROTATION_AT_END (see above) | N/A | N/A |
| REBAR_ELEM_HOOK_START_ORIENT | Hook Orientation At Start | ParameterTypeId.RebarElemHookStartOrient | REBAR_ELEM_TERMINATION_START_ORIENT | Orientation At Start | ParameterTypeId.RebarElemTerminationStartOrient |
| REBAR_ELEM_HOOK_END_ORIENT | Hook Orientation At End | ParameterTypeId.RebarElemHookEndOrient | REBAR_ELEM_TERMINATION_END_ORIENT | Orientation At End | ParameterTypeId.RebarElemTerminationEndOrient |
The BuiltInParameter INSTANCE_LENGTH_PARAM's user visible name was changed for structural beams and columns. Scripts that looks for the parameter by name may be impacted by this change. This may also have an impact on the parameter name in other Revit languages. Code that references this parameter by it's BuiltInParameter identifier or ForgeTypeId should be unaffected by this change.
| Original Parameter Name | Updated Parameter Name |
|---|---|
| Length | System Length |
The type parameter VIEWER_REFERENCE_LABEL_TEXT (ParameterTypeId.ViewerReferenceLabelText) now represents a default value for the reference labels of sections, elevations, and callouts. This parameter has been renamed to "Default Reference Label". The displayed value for a particular view instance is now stored in the instance parameter VIEWER_REFERENCE_LABEL (ParameterTypeId.ViewerReferenceLabel) - user visible name: "Reference Label".
A new overload and corresponding classes has been added to in order to more accurately represent various edge cases in determining the intersection relationship between two curves. As a result of this unification, older Curve.Intersect() overloads have been deprecated:
| Deprecated member(s) | Replacement member(s) |
|---|---|
| SetComparisonResult Curve.Intersect (Curve otherCurve) | CurveIntersectResult Curve.Intersect(Curve otherCurve, CurveIntersectionResultOption.Simple) |
| SetComparisonResult Curve.Intersect (Curve otherCurve, IntersectionResultArray intersections) | CurveIntersectResult Curve.Intersect(Curve otherCurve, CurveIntersectionResultOption.Detailed) |
The method returns the new class:
encaspulates the results of an intersection check between two curves. It offers the following information:
Note that if Curve.Intersect() was invoked with CurveIntersectResultOption.Simple, the result will not contain overlap information. This may save processing time when the only required information is the type of intersection between the curves.
The new class:
represents an named assigned position for a viewport on a sheet. It exposes the following members:
The ViewPosition can be associated to a Viewport using:
This replaces the previously existing ViewPositioning capabilities:
| Deprecated member | Replacement member |
|---|---|
| Viewport.ViewportPositioning | Viewport.ViewAnchor |
The following properties are deprecated and may be removed in later version of Revit.
| Deprecated member(s) | Replacement member(s) | Notes |
|---|---|---|
FolderItemInfo.ElementId | FolderItemInfo.GetGroupingParameterIdPath() | The parameter Id path used to determine the folder items in the browser. |
BrowserOrganization.SortingParameterId | BrowserOrganization.GetSortingParameterIdPath() | The parameter Id path used to determine the sorting order of items in the browser. |
elements were required to have a core layer. Now, with this enhancement, users can create compound elements without a core layer, and APIs related to creating and modifying and deleting layers in CompoundStructures now support this new option.
The following members were removed from this version of Revit. Use the already existing replacement methods if needed:
| Removed member(s) | Replacement member(s) |
|---|---|
EnergyAnalysisOpening.GetPolyloop() | EnergyAnalysisOpening.GetPolyloops() |
EnergyAnalysisSurface.GetPolyloop() | EnergyAnalysisSurface.GetPolyloops() |
The following members are deprecated and may be removed in later version of Revit.
| Deprecated member(s) |
|---|
| Autodesk.Revit.DB.GBXMLExportOptions.Encoding |
| Autodesk.Revit.DB.GBXMLExportOptions.ExportEnergyModelType |
| Autodesk.Revit.DB.GBXMLExportOptions.ExportAnalyticalSystems |
| Removed member(s) |
|---|
| Autodesk.Revit.DB.GBXMLExportOptions(massZoneIds, massIds) |
| Autodesk.Revit.DB.GBXMLExportOptions.IsConceptual |
| Autodesk.Revit.DB.GBXMLExportOptions.GetMassIds() |
| Autodesk.Revit.DB.GBXMLExportOptions.GetMassZoneIds() |
The following failure definitions are deprecated and may be removed in a later version of Revit.
| Deprecated member(s) | Replacement member(s) |
|---|---|
BuiltInFailures.ImportFailures.ATFNonUniformScalingTransform | BuiltInFailures.ImportFailures.ImportContainedUnsupportedTransform |
BuiltInFailures.ImportFailures.ATFContainedUnsupportedGeometricData | BuiltInFailures.ImportFailures.ImportContainedUnsupportedGeometricData |
BuiltInFailures.RebarFailures.Inverted3dShape | N/A |
The events:
previously would be invoked when the event Application.DocumentOpening had been canceled (due to file corruption or other reasons). Now, these events will not be invoked in those cancellation situations.
The property:
can now be assigned a value of ElementId.InvalidElementId, which corresponds to "None" for this property.
There are multiple new classes and members and some deprecations and replacements to support the new capabilities around Rebar cranking and corresponding settings.
First, API references to Hooks and end conditions of rebar and rebar shapes have been renamed and/or replaced with new classes. This includes the renaming of parameters (see Parameter API changes), as well as the new enumerated type:
where this type replaces RebarHookOrientation:
Deprecated member | Replacement member | Details |
|---|---|---|
| RebarHookOrientation | RebarTerminationOrientation | The Enum was renamed to reflect that it is used by hooks and cranks too. Both have the same options. |
Other new classes related to rebar cranking include:
As a result of these changes and new data classes, new and replacement members have been added to several previously available classes.
New members:
Replacements:
Deprecated member(s) | Replacement member(s) |
|---|---|
| Rebar.CreateFromCurves(Document doc, RebarStyle style, RebarBarType barType, RebarHookType startHook, RebarHookType endHook, Element host, XYZ norm, IList<Curve> curves, RebarHookOrientation startHookOrient, RebarHookOrientation endHookOrient, double terminationRotationAngleAtStart, double terminationRotationAngleAtEnd, ElementId endTreatmentTypeIdAtStart, ElementId endTreatmentTypeIdAtEnd, bool useExistingShapeIfPossible, bool createNewShape | Rebar.CreateFromCurves(Document doc, RebarStyle style, RebarBarType barType, Element host, XYZ norm, IList<Curve> curves, BarTerminationsData barTerminationsData, bool useExistingShapeIfPossible, bool createNewShape) |
| Rebar.CreateFromCurves(Document doc, RebarStyle style, RebarBarType barType, RebarHookType startHook, RebarHookType endHook, Element host, XYZ norm, IList<Curve> curves, RebarHookOrientation startHookOrient, RebarHookOrientation endHookOrient, bool useExistingShapeIfPossible, bool createNewShape) | Rebar.CreateFromCurves(Document doc, RebarStyle style, RebarBarType barType, Element host, XYZ norm, IList<Curve> curves, BarTerminationsData barTerminationsData, bool useExistingShapeIfPossible, bool createNewShape) |
| Rebar.CreateFromCurvesAndShape(Document doc, RebarShape rebarShape, RebarBarType barType, RebarHookType startHook, RebarHookType endHook, Element host, XYZ norm, IList<Curve> curves, RebarHookOrientation startHookOrient, RebarHookOrientation endHookOrient, double terminationRotationAngleAtStart, double terminationRotationAngleAtEnd, ElementId endTreatmentTypeIdAtStart, ElementId endTreatmentTypeIdAtEnd) | Rebar.CreateFromCurvesAndShape(Document doc, RebarShape rebarShape, RebarBarType barType, Element host, XYZ norm, IList<Curve> curves, BarTerminationsData barTerminationsData) |
| Rebar.CreateFromCurvesAndShape(Document doc, RebarShape rebarShape, RebarBarType barType, RebarHookType startHook, RebarHookType endHook, Element host, XYZ norm, IList<Curve> curves, RebarHookOrientation startHookOrient, RebarHookOrientation endHookOrient) | Rebar.CreateFromCurvesAndShape(Document doc, RebarShape rebarShape, RebarBarType barType, Element host, XYZ norm, IList<Curve> curves, BarTerminationsData barTerminationsData) |
| Rebar.RebarShapeMatchesCurvesAndHooks(RebarShape rebarShape, RebarBarType barType, XYZ norm, IList<Curve> curves, RebarHookType startHook, RebarHookType endHook, RebarHookOrientation startHookOrient, RebarHookOrientation endHookOrient) | RebarShape.RebarShapeMatchesCurvesAndTerminationsData(RebarShape rebarShape, RebarBarType barType, XYZ norm, IList<Curve> curves, RebarShapeTerminationsData rebarShapeTerminationsData) |
| Rebar.RebarShapeMatchesCurvesHooksAndEndTreatment(RebarShape rebarShape, RebarBarType barType, XYZ norm, IList<Curve> curves, RebarHookType startHook, RebarHookType endHook, RebarHookOrientation startHookOrient, RebarHookOrientation endHookOrient, double terminationRotationAngleAtStart, double terminationRotationAngleAtEnd, ElementId endTreatmentTypeIdAtStart, ElementId endTreatmentTypeIdAtEnd) | RebarShape.RebarShapeMatchesCurvesAndTerminationsData(RebarShape rebarShape, RebarBarType barType, XYZ norm, IList<Curve> curves, RebarShapeTerminationsData rebarShapeTerminationsData) |
| Rebar.GetHookOrientation(int end) | Rebar.GetTerminationOrientation(int end) |
| Rebar.SetHookOrientation(int end, RebarHookOrientation terminationOrientation) | Rebar.SetTerminationOrientation(int end, RebarTerminationOrientation terminationOrientation) |
| Rebar.GetHookRotationAngle(int end) | Rebar.GetTerminationRotationAngle(int end); |
| Rebar.SetHookRotationAngle(double rotationAngle, int end) | Rebar.SetTerminationRotationAngle(double rotationAngle, int end) |
New members:
Deprecated member(s) | Replacement member(s) |
|---|---|
| RebarContainer.AppendItemFromCurves(RebarStyle style, RebarBarType barType, RebarHookType startHook, RebarHookType endHook, XYZ normal, IList<Curve> curves, RebarHookOrientation startHookOrient, RebarHookOrientation endHookOrient, bool useExistingShapeIfPossible, bool createNewShape) | RebarContainer.AppendItemFromCurves(RebarStyle style, RebarBarType barType, RebarHookType startHook, RebarHookType endHook, XYZ normal, IList<Curve> curves, RebarTerminationOrientation startHookOrient, RebarTerminationOrientation endHookOrient, bool useExistingShapeIfPossible, bool createNewShape) |
| RebarContainer.AppendItemFromCurvesAndShape(RebarShape rebarShape, RebarBarType barType, RebarHookType startHook, RebarHookType endHook, XYZ normal, IList<Curve> curves, RebarHookOrientation startHookOrient, RebarHookOrientation endHookOrient) | RebarContainer.AppendItemFromCurvesAndShape(RebarShape rebarShape, RebarBarType barType, RebarHookType startHook, RebarHookType endHook, XYZ normal, IList<Curve> curves, RebarTerminationOrientation startHookOrient, RebarTerminationOrientation endHookOrient) |
Deprecated member(s) | Replacement member(s) |
|---|---|
| RebarContainerItem.SetFromCurves(RebarStyle style, RebarBarType barType, RebarHookType startHook, RebarHookType endHook, XYZ norm, IList<Curve> curves, RebarHookOrientation startHookOrient, RebarHookOrientation endHookOrient, bool useExistingShapeIfPossible, bool createNewShape); | RebarContainerItem.SetFromCurves(RebarStyle style, RebarBarType barType, RebarHookType startHook, RebarHookType endHook, XYZ norm, IList<Curve> curves, RebarTerminationOrientation startHookOrient, RebarTerminationOrientation endHookOrient, bool useExistingShapeIfPossible, bool createNewShape) |
| RebarContainerItem.SetFromCurvesAndShape(RebarShape rebarShape, RebarBarType barType, RebarHookType startHook, RebarHookType endHook, XYZ norm, IList<Curve> curves, RebarHookOrientation startHookOrient, RebarHookOrientation endHookOrient) | RebarContainerItem.SetFromCurvesAndShape(RebarShape rebarShape, RebarBarType barType, RebarHookType startHook, RebarHookType endHook, XYZ norm, IList<Curve> curves, RebarTerminationOrientation startHookOrient, RebarTerminationOrientation endHookOrient) |
| RebarContainerItem.SetHookOrientation(int end, RebarHookOrientation hookOrientation) | RebarContainerItem.SetTerminationOrientation(int end, RebarTerminationOrientation hookOrientation) |
| RebarContainerItem.GetHookOrientation(int end) | RebarContainerItem.GetTerminationOrientation(int end) |
New method:
Deprecated member(s) | Replacement member(s) |
|---|---|
| RebarFreeFormAccessor.GetHookOrientationAngle(int end); | Rebar.GetTerminationRotationAngle(int end) |
| RebarFreeFormAccessor.SetHookOrientationAngle(int end, double angle); | Rebar.SetTerminationRotationAngle(double rotationAngle, int end) |
| RebarFreeFormAccessor.GetHookOrientationAngleAtIndex(int barPositionIndex, int end); | RebarFreeFormAccessor.GetTerminationRotationAngleAtIndex(int barPositionIndex, int end) |
| RebarFreeFormAccessor.GetHookPlaneNormalForBarIdx(int end, int barPositionIndex) | RebarFreeFormAccessor.GetTerminationPlaneNormalForBarIndex(int end, int barPositionIndex) |
| RebarFreeFormAccessor.SetHookPlaneNormalForBarIdx(int end, int barPositionIndex, XYZ terminationPlaneNormal); | RebarFreeFormAccessor.SetTerminationPlaneNormalForBarIndex(int end, int barPositionIndex, XYZ terminationPlaneNormal) |
| RebarFreeFormAccessor.CanBeHookNormal(int barIndex, int end, XYZ normal); | RebarFreeFormAccessor.CanBeTerminationPlaneNormal(int barIndex, int end, XYZ normal) |
| RebarFreeFormAccessor.GetHookOrientationAtIndex(int barPositionIndex, int end); | RebarFreeFormAccessor.getTerminationOrientationAtIndex(int barPositionIndex, int end) |
Deprecated member(s) | Replacement member(s) |
|---|---|
| RebarShape.Create(Document doc, RebarShapeDefinition definition, RebarShapeMultiplanarDefinition multiplanarDefinition, RebarStyle style, StirrupTieAttachmentType attachmentType, int startHookAngle, RebarHookOrientation startHookOrientation, int endHookAngle, RebarHookOrientation endHookOrientation, int higherEnd) | RebarShape.Create(Document doc, RebarShapeDefinition definition, RebarShapeMultiplanarDefinition multiplanarDefinition, RebarStyle style, StirrupTieAttachmentType attachmentType, int higherEnd, RebarShapeTerminationsData rebarShapeTerminationsData) |
| RebarShape.Create(Document doc, RebarShapeDefinition definition, RebarShapeMultiplanarDefinition multiplanarDefinition, RebarStyle style, StirrupTieAttachmentType attachmentType, int startHookAngle, RebarHookOrientation startHookOrientation, int endHookAngle, RebarHookOrientation endHookOrientation, int higherEnd, double terminationRotationAngleAtStart, double terminationRotationAngleAtEnd, ElementId endTreatmentTypeIdAtStart, ElementId endTreatmentTypeIdAtEnd) | RebarShape.Create(Document doc, RebarShapeDefinition definition, RebarShapeMultiplanarDefinition multiplanarDefinition, RebarStyle style, StirrupTieAttachmentType attachmentType, int higherEnd, RebarShapeTerminationsData rebarShapeTerminationsData) |
| GetDefaultHookAngle(int end); | RebarShape.GetTerminationsData() |
| RebarShape.GetDefaultHookOrientation(int end) | RebarShape.GetTerminationsData() |
| RebarShape.GetEndTreatmentTypeId(int end) | RebarShape.GetTerminationsData() |
| RebarShape.GetHookRotationAngle(int end) | RebarShape.GetTerminationsData() |
| RebarShape.SetEndTreatmentTypeId(ElementId endTreatmentId, int end); | RebarShape.Create(Document doc, RebarShapeDefinition definition, RebarShapeMultiplanarDefinition multiplanarDefinition, RebarStyle style, StirrupTieAttachmentType attachmentType, int higherEnd, RebarShapeTerminationsData rebarShapeTerminationsData) |
| RebarShape.SetHookRotationAngle(double rotationAngle, int end) | RebarShape.Create(Document doc, RebarShapeDefinition definition, RebarShapeMultiplanarDefinition multiplanarDefinition, RebarStyle style, StirrupTieAttachmentType attachmentType, int higherEnd, RebarShapeTerminationsData rebarShapeTerminationsData) |
| RebarShape.IsSameShapeIgnoringHooks(RebarShape otherShape) | RebarShape.IsSameShapeIgnoringTerminations(RebarShape otherShape) |
Deprecated member(s) | Replacement member(s) |
|---|---|
| RebarUpdateCurvesData.GetHookOrientationAngle(int end) | RebarUpdateCurvesData.GetTerminationRotationAngle(int end) |
| RebarUpdateCurvesData.SetHookOrientationAngle(int end, double angle) | RebarUpdateCurvesData.SetTerminationRotationAngle(int end, double angle) |
| RebarUpdateCurvesData.GetHookPlaneNormalForBarIdx(int end, int barPositionIndex) | RebarUpdateCurvesData.GetTerminationPlaneNormalForBarIdx(int end, int barPositionIndex) |
| RebarUpdateCurvesData.SetHookPlaneNormalForBarIdx(int end, int barPositionIndex, XYZ terminationPlaneNormal) | RebarUpdateCurvesData.SetTerminationPlaneNormalForBarIdx(int end, int barPositionIndex, XYZ terminationPlaneNormal) |
New members:
Deprecated member(s) | Replacement member(s) |
|---|---|
| RebarBendData.RebarBendData(RebarBarType barType, RebarHookType hookType0, RebarHookType hookType1, RebarStyle style, RebarHookOrientation terminationOrientation0, RebarHookOrientation terminationOrientation1) | RebarBendData.RebarBendData(RebarBarType barType, RebarStyle style, BarTerminationsData barTerminationsData) |
| RebarBendData.HookOrient0 | RebarBendData.TerminationOrientation0 |
| RebarBendData.HookOrient1 | RebarBendData.TerminationOrientation1 |
The new properties
BendingDetailCustomFieldProperties.AngularDimensionsForCranksEnabled
identifies if angular dimensions that have a reference set on a crank will be shown.
Several enumerated types, including:
have been extended to new statuses and values related to Rebar Cranking.
The following property is deprecated and may be removed in a later version of Revit.
| Deprecated member(s) | Replacement member(s) |
|---|---|
| ReinforcementSettings.NumberVaryingLengthRebarsIndividually | ReinforcementSettings.NumberingMethod |
The following methods are deprecated and may be removed in a later version of Revit.
| Deprecated member(s) | Replacement member(s) |
|---|---|
| Rebar.CreateFreeForm(Document doc, RebarBarType barType, Element host, IList<CurveLoop> curves, out RebarFreeFormValidationResult error); | Rebar.CreateFreeForm(Document doc, RebarBarType barType, Element host, IList<CurveLoop> curves, RebarStyle style) |
| Rebar.CreateFreeForm(Document doc, RebarBarType barType, Element host, IList<IList<Curve>> curves, out RebarFreeFormValidationResult error); | Rebar.CreateFreeForm(Document doc, RebarBarType barType, Element host, IList<IList<Curve>> curves, RebarStyle style); |
These new members return objects of the new class
which encapsulates the result of the rebar free form creation, including the created Rebar element and information about errors.
The following methods from Autodesk.Revit.DB.Structure.StructuralConnectionHandlerType class are deprecated and may be removed in a later version of Revit:
Deprecated member(s) | Replacement member(s) |
|---|---|
AddElementsToCustomConnection( StructuralConnectionHandler structuralConnectionHandler, IList<Reference> references ) | UpdateCustomConnectionType( StructuralConnectionHandler structuralConnectionHandler, IList<Reference> addReferences, IList<Reference> removeReferences ) |
RemoveMainSubelementsFromCustomConnection(StructuralConnectionHandler structuralConnectionHandler,IList<Subelement> subelements) | UpdateCustomConnectionType( StructuralConnectionHandler structuralConnectionHandler, IList<Reference> addReferences, IList<Reference> removeReferences ) |
This version of Revit introduces new elements, classes and relationships used to define the properties of cables, conductors and wires.
The new classes:
represent the properties and relationships that can be assigned to an electrical system or to a particular cable or wire.
The new properties:
provide read and write access to the assigned options and types for an Electrical System.
To support the changes made to the electrical data model some members of WireType were changed to a new data type:
| Changed properties | Old property type | New property type | Notes |
|---|---|---|---|
| WireMaterial | Autodesk.Revit.DB.Electrical.WireMaterialType | Autodesk.Revit.DB.ElementId | The conductor material of the wire type. |
| TemperatureRating | Autodesk.Revit.DB.Electrical.TemperatureRatingType | Autodesk.Revit.DB.ElementId | The conductor temperature rating of the wire type. |
| Insulation | Autodesk.Revit. DB.Electrical.InsulationType | Autodesk.Revit.DB.ElementId | The conductor insulation material of the wire type.InsulationType object can no longer set to WireType, use Autodesk.Revit.DB.Electrical.InsulationMaterial instead. |
| MaxSize | Autodesk.Revit.DB.Electrical.WireSize | System.String | The max conductor size name of the wire type.WireSize object can no longer set to WireType, use Autodesk.Revit.DB.Electrical.ConductorSize instead. |
The following classes are deprecated and may be removed in later version of Revit.
| Deprecated classes | Replacement classes | Notes |
|---|---|---|
| Autodesk.Revit.DB.Electrical.WireSize | Autodesk.Revit.DB.Electrical.ConductorSize | ConductorSizes will be created from the existing WireSizes during document upgrade. |
| Autodesk.Revit.DB.Electrical.CorrectionFactor | None | There is no replacement because Revit no longer supports this. |
| Autodesk.Revit.DB.Electrical.GroundConductorSize | Autodesk.Revit.DB.Electrical.ConductorSize | ConductorSizes will be created from the existing GroundConductorSizes during document upgrade. |
| Autodesk.Revit.DB.Electrical.InsulationType | Autodesk.Revit.DB.Electrical.InsulationMaterial | InsulationMaterials will be created from the existing InsulationTypes during document upgrade. |
| Autodesk.Revit.DB.Electrical.TemperatureRatingType | Autodesk.Revit.DB.Electrical.TemperatureRating | TemperatureRatings will be created from the existing TemperatureRatingTypes during document upgrade. |
| Autodesk.Revit.DB.Electrical.WireMaterialType | Autodesk.Revit.DB.Electrical.ConductorMaterial | ConductorMaterials will be created from the existing WireMaterialTypes during document upgrade. |
The following members have been deprecated and may be removed in later version of Revit:
| Deprecated member(s) | Replacement member(s) | Notes |
|---|---|---|
| ElectricalSystem.WireType | ElectricalSystem.CableType | WireMaterialType object can no longer set to WireType, use Autodesk.Revit.DB.Electrical.ConductorMaterial instead. |
| ElectricalSystem.WireSizeString | ElectricalSystem.CableSize | TemperatureRatingType object can no longer set to WireType, use Autodesk.Revit.DB.Electrical.TemperatureRating instead. |
| ElectricalSystem.VoltageDrop | None | There is no replacement for this property because Revit no longer supports this. |
| ElectricalSetting.WireMaterialTypes | ConductorMaterial.GetConductorMaterialIds() | |
| ElectricalSetting.AddWireMaterialType() | ConductorMaterial.Create() | |
| ElectricalSetting.RemoveWireMaterialType() | Document.Delete() | |
| ElectricalSetting.AddWireType() | WireType.Duplicate() | WireMaterialType object can no longer set to the WireType, use property WireType.WireMaterial instead. TemperatureRatingType object can no longer set to the WireType, use property WireType.TemperatureRating instead.InsulationType object can no longer set to the WireType, use property WireType.Insulation instead.WireSize object can no longer set to the WireType, use property WireType.MaxSize instead. |
System-Zone elements have been expanded to support sketch-based or space-based elements, and now have an assignable type.
The following method has been deprecated and replaced:
| Deprecated member(s) | Replacement member(s) |
|---|---|
| GenericZone.Create() | GenericZone.CreateSketchBased() - use this to create sketch-based Zones like Create() used to GenericZone.CreateSpaceBased() - use this to create space-based Zones (a new option in this release) |
| Document.NewZone() | Create the GenericZone object instead. |
Zone.IsDefaultZone Zone.GrossArea Zone.Volume Zone.GrossVolume Zone.Perimeter Zone.ServiceType | Use the properties of GenericZone |
Zone.CalculatedSupplyAirflow Zone.CalculatedHeatingLoad Zone.CalculatedCoolingLoad Zone.HeatingSetPoint Zone.CoolingSetPoint Zone.HeatingAirTemperature Zone.CoolingAirTemperature Zone.HumidificationSetPoint Zone.DehumidificationSetPoint | Use the properties of GenericZone and SystemZoneElementType |
Zone.AddSpaces Zone.RemoveSpaces | GenericZone.AddSpaces GenericZone.RemoveSpaces |
The new classes:
are used to access the element types of Zones and the domain-specific data they may contain.
The new method:
returns the spaces contained in a space-based zone.
The new class:
establishes extra IFC Import Options for AnyCAD processing mode, including options for how to process grids, levels and property sets.
With this new options class, methods of IFCHybridImport have been deprecated and replaced:
| Deprecated member(s) | Replacement member(s) |
|---|---|
| IFCHybridImport.ImportElements(Document, String) | IFCHybridImport.ImportElements(Document, String, IFCHybridImportOptions) |
| IFCHybridImport.UpdateElements(Document, String) | IFCHybridImport.UpdateElements(Document, String, IFCHybridImportOptions) |
The new properties:
indicate the placement option and orientation options for an IFC import.
The following replacement methods have been introduced:
| Deprecated member(s) | Replacement member(s) |
|---|---|
| IFCCategoryTemplate.SetActiveTemplate(Document) | IFCCategoryTemplate.SetActiveTemplate() |
Also, the newly added property:
indicates whether the Category Mapping File is valid or not.
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:
With the introduction of user control for loaded add-ins, new APIs have been added to facilitate the management of add-in settings in and out of Revit. These APIs are a part of RevitAddinUtility.dll and documented in RevitAddinUtility.chm.
The new class:
contains the settings to enable/disable loading of add-ins registered with Revit. It offers the following members:
The new class:
represents the settings of an Add-in registered with Revit. It offers the following properties:
The new method:
identifies if Revit is currently in an active edit mode or not.
The new method with a corresponding new enum:
returns the active edit mode type, where the value None indicates that Revit is not in edit mode.
The new methods:
run a computation to check the closure of the input solid or shell and the one or more components it contains.
Added new element-wise accessors to NurbsSurfaceData in order to avoid deep-copying large arrays of values when only one element from the array is needed.
The new methods:
The new methods:
provide access to the attachment settings for walls on their top or bottom (to specific model elements like roofs, floors, ceilings, toposolids, or other walls).
This enhancement allows for the customization of CompoundStructure layer priority without needing to change its function, providing more flexibility in the design process. The new APIs:
provide read and write access to the priority values, plus the option to reset them to default.
The new method:
creates a Toposolid subdivision element with the input toposolid as its host, and a specified type to be used for the new subdivision.
The new static routines:
access the option to use random shifting to find a successful Boolean operation for cutting and joining Toposolid objects.
The new method:
returns the geometric representation of the ceiling grid, optionally including the ceiling boundary.
The new methods in SpatialElement:
The new method in SpatialElementTag:
allows user to move the SpatialElementTag to the location of SpatialElement that the tag is associated with.
The new method:
gets the parameter group identifier corresponding to the given built-in parameter identifier.
The new property to TemporaryViewModes:
The new value to Enum TemporaryViewModes:
The new method:
sets the tooltip for the given temporary graphics object.
Directly drawn graphics (DirectContext3D)The new methods:
get and set the color override applied to the handle and the associated DirectContext3D graphics.
Also, the index buffer parameter input in:
has been updated to optional, where null is permitted, but only if indexCount is also 0.
The new method:
allows users to determine if the IndependentTag object has a valid tag text.
Failure API additionThe new method:
returns the user-visible name for the severity of a warning.
The new method:
returns the translation for the family instance's adjustment within an Assembly.
The new classes and enums:
allows control over the way that Revit parameters are mapped to IFC properties, including the ability to create, retrieve and modify IFC parameter mapping templates.
The new property:
retrieves the connector manager of a given structural analytical element. It will return connectors of Domain.StructuralAnalytical.
The new method:
returns the id of the associated Point element.
Structural API additionsThe new method:
allows users to disable the auto-join setback distances for all structural steel framing, slanted columns, trusses, beam systems and braces.
Load CombinationsSeveral new values have been added to the Autodesk.Revit.DB.Structure.LoadCombinationState enum:
Added the ability to create Rebar Free Form using server GUIDS.
The new static properties:
returns the GUID of the to-be-used external IRebarUpdateServer for computing Aligned or Surface Free Form Rebar.
The new enums:
correspond to the values that might be returned by RebarConstrainedHandle.GetCustomHandleTag() for Aligned or Surface Free Form Rebar.
Rebar NumberingThe new property:
provides access to the setting for how varying length bars are numbered.
The new method:
gets the RebarHandleBehavior of the handle of the other Rebar Element to which this RebarConstraint is attached. (The RebarConstraintType of the RebarConstraint must be 'ToOtherRebar').
The new members:
provide information about which distribution is set closest to the cover.
The new members:
support override of the analytical segment coefficient and pressure drop. These allow application of specified loss coefficients or pressure drop values in the network-based flow calculation.
The new methods:
provide information about the flow characteristics for a given segment.
Browser organization options are now enabled for panel schedules. Users can organize panel schedules by some properties of panels.
The new methods:
allows access to the BrowserOrganization that applies to the Panel Schedules section of the project browser and provides access to the parameter Id path used to determine the sorting order of items in the browser.
The new methods:
return all identifiers for fabrication connector definitions that are compatible with and valid to be assigned to the input connector, for the body and double wall connections respectively.
The following read-only properties have been added for access to zone analysis properties: