I’ve trying to get a list of Assembly names from the active document by using this code:
#Get all Assembly types within the document
allassem = FilteredElementCollector(doc).OfClass(AssemblyType)
#Convert list to elements
allassemt = allassem.ToElements()
nameslist = 
#Extract the list of names
for f in allassemt:
OUT = [nameslist]
I get the error:
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed. _
Traceback (most recent call last):
_ File “”, line 48, in
Looking at the API documents, the AssemblyType class has a property called ‘Name’ and when I use DIR() it lists the Name property.
Am I missing something?