AssetPropertyList
Represents a list of AssetProperty(s).
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.Visual.AssetProperty
Autodesk.Revit.DB.Visual.AssetPropertyList
Namespace: Autodesk.Revit.DB.Visual
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class AssetPropertyList : AssetProperty
The AssetPropertyList type exposes the following members.
Properties
Name
Description
Public Property
IsReadOnly
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.
(Inherited from AssetProperty)
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
(Inherited from AssetProperty)
Public Property
Name
Get the name of the AssetProperty
(Inherited from AssetProperty)
Public Property
NumberOfConnectedProperties
The number of currently connected properties.
(Inherited from AssetProperty)
Public Property
Type
Returns the type of the AssetProperty
(Inherited from AssetProperty)
Methods
Name
Description
Public Method
AddConnectedAsset
Adds a new connected asset attached to this asset property, if it allows it.
(Inherited from AssetProperty)
Public Method
Code Example
AddCopyAsConnectedAsset
Makes a copy of the asset and connects it to this property.
(Inherited from AssetProperty)
Public Method
AddNewAssetAsColor
Adds a new AssetPropertyDouble4 property to the list containing a value matching the input color.
Public Method
AddNewAssetPropertyDouble
Adds a new AssetPropertyDouble containing the input value to this list.
Public Method
AddNewAssetPropertyInteger
Adds a new AssetPropertyInteger containing the input value to this list.
Public Method
Dispose
(Inherited from AssetProperty)
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetAllConnectedProperties
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.
(Inherited from AssetProperty)
Public Method
GetConnectedProperty
Gets one connected property with specified index.
(Inherited from AssetProperty)
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.
(Inherited from AssetProperty)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
GetValue
Gets a collection of properties stored in this property list. These properties are copied.
Public Method
InsertNewAssetAsColor
Insert a new AssetPropertyDouble4 containing the input value to this list.
Public Method
InsertNewAssetPropertyDouble
Inserts a new AssetPropertyDouble containing the input value to this list.
Public Method
InsertNewAssetPropertyInteger
Insert a new AssetPropertyInteger containing the input value to this list.
Public Method
IsEditable
Check if property can be edited.
(Inherited from AssetProperty)
Public Method
IsValidSchemaIdentifier
Check that schema name is valid
(Inherited from AssetProperty)
Public Method
IsValidValue
Check that value is valid.
Public Method
RemoveAssetProperty
Remove the AssetProperty from the list.
Public Method
RemoveConnectedAsset
Removes the connected asset attached to this asset property if any.
(Inherited from AssetProperty)
Public Method
SetValue
Sets collection of properties stored in this property list.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)