ApperanceAssets Python Filtered Element collector empty

I am trying to get a list of appearance assets in a document.
This python code returns and empty list?.
Does anyone know of a way to get a list of Appearance Assets?

import clr
# import RevitNodes
import Revit

# import Revit Services 
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

# import Revit API
import Autodesk
from Autodesk.Revit.DB import *

# import system.
import System
from System.Collections.Generic import *
# get the current Revit document. 
doc = DocumentManager.Instance.CurrentDBDocument

elemnets = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_AppearanceAsset)

OUT = elemnets

I believe you need to get it from the Material.

Hi @Justin_Wright

Are you tried this?

elemnets = FilteredElementCollector(doc).OfClass(AppearanceAssetElement)

1 Like

that worked thank you.