这里从SDK的文章中摘录出所有的API变化。主要是希望用户用搜索引擎时能找到相关信息:
Revit's API is now built with and requires .NET 4.5 forcompilation.
Revit is now built with and installs runtime libraries fromVC11 update 4 (Visual Studio 2012). Third party applications whichinclude native components may want to upgrade to the same VC runtime as thereis no guarantee that Revit will install any other runtime on client machines.
A small set of units API functions introduced in Revit 2014have been obsoleted. Their replacements already existed in Revit 2014,and are listed here:
Obsoleted member |
Replacement |
Units.GetDisplayUnitType() |
Units.GetFormatOptions(UnitType.UT_Length).DisplayUnits |
Units.SetDigitalSymbolAndGrouping() |
Units.DecimalSymbol, Units.DigitGroupingSymbol, Units.DigitGroupingAmount (setters) |
Units.IsValidDigitalSymbolAndGrouping() |
All combinations are now valid |
DigitGroupingSymbol.Tick (enum value) |
DigitGroupingSymbol.Apostrophe |
FormatOptions(UnitSymbolType, DisplayUnitType) (constructor) |
FormatOptions (DisplayUnitType, UnitSymbolType) |
FormatOptions.GetRounding() |
FormatOptions.Accuracy |
FormatOptions.HasRounding() |
All display units have accuracy values |
FormatOptions.UseGrouping |
FormatOptions.UseDigitGrouping |
FormatOptions.GetName() |
UnitUtils.GetTypeCatalogString() |
FormatValueOptions.IsFormatOptionsValidForUnitType() |
FormatOptions.IsValidForUnitType() |
UnitFormatUtils.FormatValueToString() |
UnitFormatUtils.Format() |
ValueParsingOptions.FormatOptions |
ValueParsingOptions.GetFormatOptions() |
FormatUtils.Format() |
UnitFormatUtils.Format() |
The indexed property Element.Parameter[String] isobsolete. The recommended replacement is:
The collection returned from this property now includesmore parameters. Previously, it returned only parameters that Revitshowed in the Properties Palette, but now it also includes parametersavailable in schedules and tags but not shown in the Properties Palette. This can cause behavioral changes for existing applications because some of thenewly visible parameters will have duplicate names, but different ids, withother parameters. To get a list of just the parameters availablefrom the Properties Palette, use Element.GetOrderedParameters().
Revit now allows the assignment of two new properties toshared parameters:
The new method:
create a new shared parameter definition using an optionsclass where any or all of the available options may be set (name and type arerequired, but GUID, user visible, user modifiable, and description areoptional). This method replaces all other specific versions of Definitions.Create()which are now obsolete.
Note that for shared parameters IsReadOnly can return falsefor shared parameters whose UserModifiable property is also false, because thevalue of those parameters can be modified by the API. If a parameter isgoverned by a formula, IsReadOnly would return true, even if the flag forUserModifiable was set to true when the shared parameter was created.
The new properties:
provide information about whether the flag is set to theAPI.
The methods
have been obsoleted. Instead of using these methodsafter constructing the WorksetConfiguration, use the constructor forWorksetConfiguration accepting one of the following options:
The property
duplicated the property
but was not settable. It has been removed completelyin Revit 2015.
Several pre-existing classes:
are now subclasses of Element. You can use limitedElement related functionality on these members (for example, get their ids tocheck them out in a local workshared model, or add ExtensibleStorage tothem). FilteredElementCollector will now return these types if they passthe associated filters.
The FamilyBase class has been completely removed as a baseclass of Family. Family now inherits directly from Element. Themembers which belonged to FamilyBase have moved to Family:
Code that accesses elements as Family and uses thesemembers should not need to be changed, but must be recompiled due to theremoval of the intermediate level.
Code that accesses elements as FamilyBase will need to beupdated to use Family instead. In Revit, any FamilyBase element foundwill actually be a Family element and can be cast accordingly.
The property Family.Symbols has been obsoleted - use
as a replacement.
Access to these properties is now supported only from anowner family obtained from a curtain panel family document.
An exception will result attempting to access theseproperties from a family which is not the owner family of the document.
Code which previously tried to use these properties from anon-owner family will now need to edit the family in order to access thisinformation.
The new class:
contains settings related to graphics display, such astransparency, silhouette settings, hidden lines, and smooth edges. Access thesesettings from:
This access replaces direct properties of View:
which have been marked obsolete.
Several ViewSheet methods related to Revisions have beenreplaced with new names. The original members have been obsoleted. This table lists the changes:
Obsoleted member |
Replacement |
IList |
IList |
ICollection |
ICollection |
SetAdditionalProjectRevisionIds(ICollection |
SetAdditionalRevisionIds(ICollection |
Several methods of AnalyticalModel havebeen marked obsolete:
Their replacements are more specializedadditions in AnalyticalModelSurface and the new classes AnalyticalModelStickand AnalyticalModelColumn, described below.
To check if an analytical model is asurface type of element, try to downcast it to AnalyticalModelSurface.
The method
has been obsoleted - use
as a replacement.
A new overload has been introduced for
accepting ids for the type, bar type and hook type. The previous version has been obsoleted.
A new overload has been introduced for
accepting ids for the type, bar type and hook types. The previous version has been obsoleted.
The method
has been obsoleted - use
as a replacement.
A new overload has been introduced for
accepting ids for the type and sheet type. Theprevious version has been obsoleted.
The method
has been obsoleted. Use
as a replacement.
The following classes:
have been obsoleted. They did nothave specific API access available in the first place.
The enumerated valueBoundaryConditionsType.Nothing was removed from the enumerated type. This was a default value which could never be returned or set for any element.
The new method
supports setting of the selected elements in the activedocument.
The following items are now obsolete:
The properties
did not match properties available in the Revit userinterface, and thus should not have been exposed in the API. They havebeen removed completely in Revit 2015.
The method NewWire() has been obsoleted and replaced by thenew method
The new method supports creation of straight, arc, chamfer,and spline wires.
Several new methods have been introduced to edit the layoutof an existing wire:
New properties on wire:
Several API routines thatreturned HashSet
IFCFile has a new Read() function that returns the numberof errors and warnings reported by the toolkit during the read operation. This is in addition to the existing Read() function.
IFCAnyHandle now has SetAttribute() functions for each datatype to reduce the use of the IFCData class.
IFCLegacyStairOrRamp has two new functions,GetBoundaryLines() and GetWalkLines(), that return the curve loops associatedwith the boundaries and walking lines of the legacy stair or ramp,respectively.
The properties:
have been obsoleted. Because the EnergyAnaysisDetailModelis intended to be generated at a single point in time, and is not persistentlyupdated as changes are made to the original elements used to generate theenergy analysis model, the model has been decoupled from direct relationshipswith the generating Revit elements. As replacements, the API now offers:
These properties offer the unique id of the relatedelements instead. In the case of potential relationships with linked modelelements, two unique ids are available.
As a reminder, the EnergyAnaysisDetailModel is intended tobe generated and used immediately - none of the data or relationships that itcontains is updated as changes are made to the corresponding Revit model. Dispose of the generated EnergyAnaysisDetailModel using the Destroy() method assoon as you have extracted the needed information.
The property Material.MaterialCagtegory has been obsoletedand replaced by Material.MaterialCategory.
This method has been obsoleted - use
as a replacement.
This class has moved from namespace Autodesk.Revit.DB toAutodesk.Revit.DB.Structure.
This enumerated type value has been renamed toOST_MassGlazing.
Previously, the ElementIntersectsElementFilter would reportthe target element as an "intersection" with itself. Thisbehavior has been changed; the filter will no longer pass the targetelement.
The ExtensibleStorageFilter class has moved from namespaceAutodesk.Revit.DB to Autodesk.Revit.DB.ExtensibleStorage.
The MeshTriangle class no longer inherits fromAPIObject.
The method CurtainGridLine.Move() has been obsoleted. Use ElementTransformUtils.MoveElement() to accomplish the same result.
Previously, when this function couldn't create a compatibleCurveLoop, it would return null. It now throws an exception in thissituation.
The following obsolete APIs and classes have been removed:
The new property
allows you to read the currently active graphical view ofthe currently active document. Unlike UIDocument.ActiveView, thisproperty will never return auxiliary views like the Project Browser or SystemBrowser if the user has happened to make a selection in one of those views.
The new methods
allow full control over the Sketchy Lines settings for agiven view.
Revit has a default type for different categories. This default type is shown in the Revit User Interface when the related tool isinvoked to create an element of this category.
These members provide read and write access to the defaulttype for a given family category id:
These members provide read and write access to the defaulttype for a non-Family element type:
The new classes:
are used to define how objects of certain kind and scopeare to be organized for the purpose of numbering/tagging them. EachNumberingSchema controls numbering of elements of one particular kind. Instances of NumberingSchema are also elements and there is always only one ofeach type in every Revit document. Available types of all built-in numberingschemas are enumerated in NumberingSchemaTypes class.
In this release NumberingSchema applies only to thebuilt-in types matching elements of these categories:
Reinforcement and Rebar is now allowed to be hosted inParts if those Parts come from a structural layer of a valid reinforcementhost.
The methods:
accept compatible parts as host elements.
The new method:
identifies if a proposed host elementsis valid for reinforcement.
The new presentation mode capabilitiesallow the user to specify how rebar sets are shown in a given view. Barpresentation schemes simplify the view while maintaining an identifiablefootprint in which the rebar set is placed. In the API, the following membershave been added to support this capability:
The default settings for bar presentation can be accessedfrom
The new members:
support the new Revit capability wheresingle instances of fabric sheets can be placed precisely to reinforce sectionsof concrete walls or floors.
The new methods:
create a default element type for thegiven reinforcement class. This is useful if there is no existing typeelement of this kind in the document.
The new overloads:
create new reinforcement area elements automaticallyrelated to the host's boundary.
The property:
gets the rebar shape family id.
The type of host for rebars. This typematches the value returned by the new parameterBuiltInParameter.REBAR_HOST_CATEGORY.
The new method:
returns the local coordinate systemfrom analytical model element.
The AnalyticalModelSurface class hasbeen extended with several new members:
These new members support checking andmanipulating alignment, projection and extension of AnalyticalModelSurfaceelements such floors, slabs and walls.
The new class:
· AnalyticalModelStick
represents a stick in the structuralanalytical model (A beam, brace or column). This class contains severalmembers to check and manipulate the alignment, projection and extensionproperties:
· GetAlignmentMethod()
· GetProjectionY()
· GetProjectionZ()
· GetProjectionPlaneY()
· GetProjectionPlaneZ()
· SetProjection()
The new class:
· AnalyticalModelColumn
represents an analytical model ofstructural column. It is a subclass of AnalyticalModelStick. Thisclass contains members to check and manipulate extension properties:
· BaseExtensionMethod
· TopExtensionMethod
· BaseExtensionPlaneId
· TopExtensionPlaneId
· BaseExtension
· TopExtension
The new properties:
provide the ability to read and change how the load isoriented to the associated host or related work plane.
The new methods:
access the Boundary Conditions element orientation featurethat allows orientation of boundary conditions to the local coordinate systemof the associated analytical model.
The new method:
gets the definition of the coordinate system that isused by the element's translation and rotation parameters (e.g. X Translationor Z Rotation).
The new method:
accesses the Boundary Conditions type (Point, Line orArea).
Revit now supports defined datastructures to represent standard structural section shapes. In support ofthis feature a hierarchy of classes were introduced to the API:
Class |
Represents |
StructuralSection |
The base class for StructuralSection specific classes, designed to provide common parameters and ability to differentiate between different structural section shapes. |
StructuralSectionRectangular |
The base class for rectangular sections. |
StructuralSectionRound |
The base class for round sections. |
StructuralSectionCParallelFlange |
C-channel Parallel Flange structural section. |
StructuralSectionCSlopedFlange |
C-channel Sloped Flange structural section. |
StructuralSectionHotRolled |
Hot rolled structural sections. |
StructuralSectionIParallelFlange |
I-shape Parallel Flange structural section. |
StructuralSectionISlopedFlange |
I-shape Sloped Flange structural section. |
StructuralSectionISplitParallelFlange |
I-split Parallel Flange structural section. |
StructuralSectionISplitSlopedFlange |
I-split Sloped Flange structural section. |
StructuralSectionIWelded |
I-shape Welded structural section. |
StructuralSectionIWideFlange |
I-shape Wide Flange structural section. |
StructuralSectionLAngle |
L-angle Flange structural section. |
StructuralSectionPipeStandard |
Pipe section. |
StructuralSectionRectangleHSS |
Parameterized rectangle HSS structural section. |
StructuralSectionRectangleParameterized |
Parameterized rectangle structural section. |
StructuralSectionRectangularBar |
Rectangular Bar structural section. |
StructuralSectionRoundBar |
Round Bar structural section. |
StructuralSectionRoundHSS |
Pipes known as Round HSS (HollowStructuralSection). |
StructuralSectionStructuralTees |
Structural Tees structural section. |
Only beams, braces and structuralcolumns can have a structural section. At the level of the Family, thesemembers:
identify if the family carries astructural section and its shape.
At the level of the FamilySymbol, thesemembers:
provide access to the specificparameterized structural section for a given FamilySymbol.
The new method:
returns the user-visible name ofstructural section shape.
The methods:
support setting / getting / removing the endreferences for family instances of a structural framing type.
Family instances need to be non-concrete and joined atthe given end. As the new end reference can be set appropriate face ofthe joined element at the given end. The setback value will be changed asa result of any reference change.
The methods:
support disallowing / allowing structural framingelements to join at the end to others.
Family instances need to be of a structural framingcategory. If the framing element is already joined at the end, and becomesdisallowed to join, it will become disconnected. If the framing elementend is allowed to join and if that end is near other elements it will becomejoined.
Revit 2015 introduces new API classes and members foraccessing project Revisions, their settings and associated Revision Clouds.
The new RevisionSettings class allows an application toread and modify the project-wide settings that affect Revisions and Revision Clouds.
The new property
determines the characters used to populate the RevisionNumber parameter of alphabetic Revisions.
The new property
determines the sizing of the cloud graphics for RevisionClouds in the project.
The new property
determines whether revision numbers for the project aredetermined on a per sheet or a whole project basis.
The new Revision class allows an application to read andmodify the existing revisions in a project and also to create newrevisions. Revision is a subclass of element.
The new method
provides an ordered list of all of the Revisions in thedocument.
The new method
allows the ordering of the Revisions within the project tobe changed.
The new method
creates a new Revision in the document.
The data associated with a Revision, and its associated settingswithin the project, can be read and modified through the following newproperties:
The new methods
allow an application to combine a specified Revision withthe next or previous Revision in the model. Combining the Revisions meansthat the RevisionClouds and revision tags associated with the specifiedRevision will be reassociated with the next Revision and the specified Revisionwill be deleted from the model. This method returns the ids of theRevisionClouds that were reassociated.
The new method
provides access to the Revision Number for a Revision whenthe numbering in the project is by sheet.
The new RevisionCloud class allows an application to accessinformation about the revision clouds that are present within a model and tocreate new revision clouds.
The new method
allows an application to create a new RevisionCloud in aspecified view based on a series of lines and curves.
The new property
allows an application to read an modify the Revisionassociated with the RevisionCloud.
The new method
allows an application to easily check whether aRevisionCloud is associated with a Revision that has already been issued.
The new method
allows an application to obtain the ids of the ViewSheetswhere the RevisionCloud may appear (either because the RevisionCloud is placeddirectly on the ViewSheet or because the RevisionCloud is visible in some Viewon the ViewSheet).
The new ViewSheet method
provides access to the Revision Number for a RevisionCloudwhen the numbering in the project is by sheet.
The property:
has been enhanced to return geometry from RevisionCloudelements. This will return the actual curved lines that make up thecloud.
The new method
allows an application to read the Curves that form theRevisionCloud's sketch. This will return the sketched curves that definethe basic outline of the cloud and not the arcs that Revit attaches to thesecurves to create the cloud appearance.
Revit now allows users to reorder parameters within theirgroups for a given family, ensuring that the parameters are presented to theuser in the most logical order. Several API changes have been introducedrelated to this.
The new methods
returns the parameters associated to family types orelements in the specified order. Note that forElement.GetOrderedParameters(), the returned collection only includesparameters that are shown in the Properties Palette (unlike Element.Parameters).
The new method
reorders the family parameters within the family accordingto the specified input.
The new method
sorts the family parameters according to the desiredautomatic sort order.
The new method:
sets the description for a family parameter.
The new property:
gets the stored tooltip description of the parameterdefinition.
Several new members added to the Wall class provide supportfor reading information about stacked wall and stacked wall members.
The new method
gets the sub walls which belong to a stacked wall, with theids returned in order from bottom to top.
The new properties
identify if the wall is a stacked wall, a member of astacked wall, and if the wall is a member of the stacked wall, the id of thestacked wall that owns this wall.
The new property
provides read/write access to the Function property of walltypes.
As schedules now support up to 8applied filters, the following methods now allow up to 8 filters to be applied:
The new property
provides the ability to customize the nameof grand total title row for a schedule.
Images can now be added to schedules via parameters definedas type "Image". In schedule views, the image parameter willdisplay the path of the ImageType, but the image itself displays inScheduleSheetInstances placed on a sheet. The value of the "Image"parameters is an ElementId representing an ImageType element.
The new ImageType class is a subclassof ElementType representing a type containing an image. Instances of this typemay also be displayed on 2D views or sheets directly.
The new method:
provides the ability to create a new ImageType element andloads a copy of the image into it.
The new members:
provide the ability to manage thecontents of the image, and reload it from its original path location or a newlocation.
The new members
provide the ability to affect the size and displaycharacteristics of schedules that contain images.
The new method:
creates a new linked IFC type representing an IFC modelopened for reference. Once created, you can place instance(s) of this typeusing regular RevitLinkInstance methods.
The new method:
supports different options for import and create of a newdocument based on an IFC file:
ImporterIFC offers new members to assist with theimplementation of custom IFC importers:
BuiltInParameter.IFC_*_GUID values (IFC_GUID,IFC_TYPE_GUID, IFC_PROJECT_GUID, IFC_BUILDING_GUID, and IFC_SITE_GUID) are nolonger required to be unique, and are schedulable.
BuiltInParameter.IFC_TYPE_GUID has a default English valueof "Type IfcGUID" to distinguish it from BuiltInParameter.IFC_GUID.
The new classes:
offer the ability to create imported geometry elementsdirectly in the project document. The geometry can include closed solidsor meshes. The geometry will be validated to ensure that it isvalid for Revit use.
The created elements must be assigned to a category. This grants the elements a collection of available parameters and some limitedbehaviors.
The new classes:
can be used create solid, shell, orpolymeshes bounded by a set of connected planar facets, created by addingTessellatedFace objects one by one. The utility includes some ability toheal imprecisions and discontinuities in the inputs, and offers somediagnostics regarding geometry that is too imprecise to be used.
This new framework allows add-ins to provide Revit withexternal content obtained from anywhere. Add-ins implementing a serverfor this type can obtain their external content from the web, an externaldatabase, or another application. The Revit user can browse the externalcontent locally and select appropriate content to use in their models.
In this release, only some types of Revit external contentare supported as External Resources:
The new interface:
allows developers to provide resources from an externalsource. Revit will call IExternalResourceServer.LoadResource(), and the serverwill provide the data for the requested resource.
The new interface:
gives Revit a list of the resources handled by the server.The resources will appear in Revit's UI when the Revit user browses for theappropriate link type. Servers can also provide custom error-handling UI. Thisallows servers to handle cases Revit could not know about. For example, if thenetwork is down and the server cannot access its resources, the server can putup a detailed error message explaining the problem.
The new class:
contains identifying information for resources which comefrom external servers. Each external server link will contain anExternalResourceReference. The ExternalResourceReference contains the id of theserver which provided the resource. The class also contains a string-to-stringmap which contains the actual identity information for the reference. Serverscan define their own conventions for naming and identifying resources.
Revit 2015 introduces a number of new classes to give applicationsaccess to the keynote and assembly code data used within a Revit model.
Because there are a number of similarities in the way thekeynote data and the assembly code data are structured, many of the operationscan be accessed through base classes that provide common functionality forkey-based tree-structured data.
The new class:
represents a collection of key-based tree entries storedwithin the Revit model, such as the keynote or assembly code table. There aretwo subclasses - KeynoteTablefor the keynote table, and AssemblyCodeTablefor the assembly code table.
The methods:
are static methods which allow access to the current table.
The methods:
allow the user to reload the keynote or assembly codetable. LoadFrom() allows the table to be reloaded from a new location.
The method:
allows access to the data in the table.
The class:
represents an individual entry within a key-based tree. Itprovides properties for the key and parent key. The subclasses, KeynoteEntryand ClassificationEntry, provide properites and methods specific to the keynotetable and the assembly code table. Keynotes have access to the keynote text,while ClassificationEntries have access to the level, category Id, anddescription.
The new property:
determines the type of analysis used when producing theexport gbXML file for the document. Options are:
The new class:
analyzes which elements are part ofthe building envelope (the building elements exposed to the outside). Thisclass uses a combination of ray-casting and flood-fill algorithms in order tofind the building elements that are exposed to the outside of the building.This method can also look for the bounding building elements for enclosed spacevolumes inside the building. Options for the analysis include:
The new class
contains settings for grouping, sorting, and filtering ofitems in the project browser.
New methods
New static Methods
New properties
The new class
contains data for each folder item in the organizationsettings of the project browser including folder parameter Id and foldername.
New properties
3 new properties have been added to Application to retrievefile paths from revit.ini:
1. DefaultIFCProjectTemplate: thetemplate set in the IFC import options to override the default projecttemplate.
2. ExportIFCCategoryTable: thepath and file name to the Revit category to IFC entity mapping table forexport.
3. ImportIFCCategoryTable: thepath and file name to the IFC entity to Revit category mapping table forimport.
The new property
identifies if a workshared document is opened as detached.
This event is raised when Revit has just enabledworksharing in the document. Handlers of this event are permittedto make modifications to any document (including the activedocument), except for documents that are currently in read-only mode.
The new method
requests to change the active view by posting a messageasynchronously. Unlike setting the ActiveView property, this will notmake the change in active view immediately. Instead the request will be postedto occur when control returns to Revit from the API context. This method ispermitted to change the active view from the Idling event or an ExternalEventcallback.
The new methods
places a request on Revit's command queue for the user toplace instances of the specified ElementType. The former is for generaluse, the latter is specifically for legend views. This does not executeimmediately, but instead when control returns to Revit from the currentAPI context. This method starts its own transaction. In a singleinvocation, the user can place multiple instances of the input element type untilthey finish the placement (with Cancel or ESC or a click elsewhere in theUI). This method invokes the UI when control returns from the current APIcontext; because of this, the normal Revit UI options will be available to theuser, but the API will not be notified when the user has completed thisaction. Because this request is queued to run at the end of the currentAPI context, only one such request can be set (between this and the commandsset by UIApplication.PostCommand()). This differs from UIDocument.PromptForFamilyInstancePlacement()as that method can be run within the current API context, but the user is notpermitted full access to the user interface options during placement.
The new method
Prompts the user to place a specified view onto a sheet.Set allowReplaceExistingSheetViewport to true to allow the user toreplace the existing viewport.
The new method
prompts the user to select instance elements to change themto the input type.
The Revit Link API has been updated - all methods whichtook a ModelPath argument now have new versions which take anExternalResourceReference argument. These methods can also work with files fromdisk. ExternalResourceReference.CreateLocalResource() can be used to create anExternalResourceReference corresponding to a local file.
The older Revit link methods have not been deprecated; theyare still available for local links.
This property is now writable, and can be toggled betweenAttachment and Overlay.
The new property
determines if the category is shown in theVisibility/Graphics settings grouped with the model, annotation, or analyticalmodel categories. Note that import categories are also"model" but will be shown separately in the dialog. Some categoriesnot shown in the dialog and will return Internal for the category type.
The new property
contains the localized string describing the family inwhich this ElementType belongs. For family symbols, this will be the name ofthe associated Family. For system family types, this will be the name used togroup related types, such as "Oval Duct" or "Curtain Wall".
The events:
allow you to subscribe to an event tobe notified when Revit is just about to duplicate an element type, and afterRevit has finished duplicating an element type.
The new static method
validates whether a proposed material name is unique indocument. This will be used to confirm the validity of the name beforecreating a new material via Material.Create() or Material.Duplicate().
The new property
identifies if the view is an assembly view.
The new property
returns the view title. This consists of the viewname plus other modifiers, such as the view type, sheet number, area scheme,and/or assembly type, depending on the specifics of the view.
The following properties are now settable:
Setting these properties allow an application to toggleModel Categories, Annotation Categories, Analytical Model Categories, or ImportCategories visibility.
The new method
allows an application to create a new drafting view in themodel with a specified ViewFamilyType.
The new method
supports reorienting the 3D view to align with the forwarddirection. This is an alternate method to reorient the view using typicalRevit calculations for other related parameters in ViewOrientation3D.
The new class ReferenceableViewUtils provides utilitymethods that allow an application to manage reference views such as referencesections or reference callouts.
The new methods
allows an application to read and change the viewreferenced by a reference view (such as a reference section or referencecallout).
The new method
provide the ability to identify the given built-inparameter group is user assignable for family parameter or not.
The property:
now returns the rotation angle in the plane of the view,for view-specific family instances such as detail components. Previouslythe angle was measured from an axis outside the plane of the view.
The new overload method
allows an application to prompt the user to place instancesof a specified family symbol interactively. The options class supports asetting requiring the mode to be set to place an air terminal family instancedirectly on a duct (the option is either set to be on or off, the user cannottoggle this during placement).
The events:
allow you to subscribe to an event tobe notified when Revit is just about to load a family into a document, andafter Revit has just finished loading the family.
The new method:
creates a new curve that has the same shape, but has itsorientation reversed.
The new method:
creates a new curve that is offset from the original curveby a certain distance. The offset direction is determined by the normalof the curve at any given point.
The new method:
creates a new closed curve loop bythickening the input open curve loop with respect to a given plane.
The new method:
creates a new CurveLoop that is an offset of the originalCurveLoop. This is effectively done by offsetting each Curve in theCurveLoop and trimming the ends to form a new continuous CurveLoop.
The new method:
returns a list of closed curve loopsthat correspond to the edge loops of the face. Curves in each curve loopcorrespond to individual edges.
The new method:
explicitly sets the geometry of thecurve element with the option to not affect the geometry of any currentlyjoined curve elements. After the curve geometry is set, other curves mayautojoin to the new curve geometry.
The new method:
sets the sketch plane and thecurve for the CurveElement simultaneously (allowing the SketchPlane to besuccessfully modified in a way that would be incompatible if setseparately). This method will not affect the geometry of any currentjoined curve elements.
The new method:
updates the geometry of theFreeFormElement to the given shape preserving References to the existinggeometry where possible.
The new property:
determines if the material's appearance in a shaded viewshould be driven by the settings of the render appearance, or driven by thematerial's graphics properties.
The new property:
indicates whether to mask coincident lines when printing.
The new properties:
provide project level read access toconnector properties which can be set in the family environment.
The method
identifies if the input is valid to be used as a name of anobject in Revit.
This routine checks only for prohibited characters in thestring. When setting the name for an object there are other specificconsiderations which are checked (for example, the same name cannot be usedtwice for different elements of the same type). This routine does not checkthose conditions.
The method
compares the input two names according tothe comparison rules in Revit. The method returns a negative value ifnameA comes before nameB, zero if nameA is equivalent to nameB,and a positivevalue if nameA comes after nameB. The method is similar to String.Compare(),but uses Revit rules for comparison. This involves breaking the namesinto alphabetic and numeric tokens and comparing tokens individually.
The new methods:
allow temporary enable and disable of Updaters. Thisallows an application to control whether an updater is triggered unnecessarilybased on changes the application knows about.
The new method:
allows an application to test that libraries necessary tosupport rendering and 3D exports are installed and available.
The new interface
inherits from IDropHandler. This includes an extrainterface to be executed when custom data is dragged and dropped onto the Revituser interface. This interface is different from IDropHandler in that itallows the handler to verify whether the drop event can be executed on thegiven view.
The new interface method
Implement this method to inform Revit whether thedrop event can be executed onto the given view.