AppearanceAssetEditScope Class

AppearanceAssetEditScope Class

A scope object that provides special access and limitations related to editing appearance assets and their related elements.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DB.VisualAppearanceAssetEditScope

Namespace: Autodesk.Revit.DB.Visual
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public class AppearanceAssetEditScope : IDisposable
Public Class AppearanceAssetEditScope
	Implements IDisposable
public ref class AppearanceAssetEditScope : IDisposable
type AppearanceAssetEditScope = 
    class
        interface IDisposable
    end

The AppearanceAssetEditScope type exposes the following members.

Constructors
 NameDescription
Public methodAppearanceAssetEditScope Constructs a new instance of an AppearanceAssetEditScope.
Top
Properties
 NameDescription
Public propertyIsActive Identifies if the EditScope is active. In other words, the EditScope has started but not committed/canceled yet.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Top
Methods
 NameDescription
Public methodCancel Cancels the edit scope.
Public methodCommit Finishes the edit scope.
Public methodDisposeReleases all resources used by the AppearanceAssetEditScope
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStart Starts the edit scope.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
You can use an AppearanceAssetEditScope to modify the values of the properties of appearance assets and connected assets (such as bitmaps). The following restrictions apply:
  • A single edit scope is allowed only to edit one top level rendering assets (and its connected assets). To edit more than one appearance asset you must start a different edit scope.
  • An edit scope may be reused for editing another asset, so long as it has been committed or canceled before using start to associate it to a new asset.
  • Multiple changes to the asset are allowed before commit.
  • A transaction must be started before using Commit() on the edited asset. The transaction may be opened before or after the edit scope is started, but must be open to allow the changes into the model.
See Also