Skip to content

AssetProperty

Public Class

Represents a property of material.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.Visual.AssetProperty

Namespace: Autodesk.Revit.DB.Visual

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class AssetProperty : IDisposable

The AssetProperty type exposes the following members.

Properties

Name

Description


Public Property

Identifies if the object is read-only or modifiable. If true, the object may not be modified. If false, the object’s contents may be modified.


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.


Public Property

Get the name of the AssetProperty


Public Property

The number of currently connected properties.


Public Property

Returns the type of the AssetProperty


Methods

Name

Description


Public Method
AddConnectedAsset

Adds a new connected asset attached to this asset property, if it allows it.


Public Method
Code Example

Makes a copy of the asset and connects it to this property.


Public Method

Releases all resources used by the AssetProperty


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method

Gets the list of the connected properties. Connected properties are the detachable properties of an AssetProperty. e.g. diffuse property can have texture as its connected property. It can also detach texture on runtime.


Public Method

Gets one connected property with specified index.


Public Method

GetHashCode

Serves as the default hash function.
(Inherited from Object)


Public Method
Code Example
GetSingleConnectedAsset

Gets the single connected asset attached to this asset property, if it exists.


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method
Static Member

Get the name of the AssetProperty


Public Method
IsEditable

Check if property can be edited.


Public Method

Check that schema name is valid


Public Method

Removes the connected asset attached to this asset property if any.


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)


Remarks

AssetProperty is the base class or all other AssetProperty sub classes.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.Visual.AssetProperty
Autodesk.Revit.DB.Visual.AssetProperties
Autodesk.Revit.DB.Visual.AssetPropertyBoolean
Autodesk.Revit.DB.Visual.AssetPropertyDistance
Autodesk.Revit.DB.Visual.AssetPropertyDouble
Autodesk.Revit.DB.Visual.AssetPropertyDoubleArray2d
Autodesk.Revit.DB.Visual.AssetPropertyDoubleArray3d
Autodesk.Revit.DB.Visual.AssetPropertyDoubleArray4d
Autodesk.Revit.DB.Visual.AssetPropertyDoubleMatrix44
Autodesk.Revit.DB.Visual.AssetPropertyEnum
Autodesk.Revit.DB.Visual.AssetPropertyFloat
Autodesk.Revit.DB.Visual.AssetPropertyFloatArray
Autodesk.Revit.DB.Visual.AssetPropertyInt64
Autodesk.Revit.DB.Visual.AssetPropertyInteger
Autodesk.Revit.DB.Visual.AssetPropertyList
Autodesk.Revit.DB.Visual.AssetPropertyReference
Autodesk.Revit.DB.Visual.AssetPropertyString
Autodesk.Revit.DB.Visual.AssetPropertyTime
Autodesk.Revit.DB.Visual.AssetPropertyUInt64