Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to extract the values for ID and Unique ID for Generic Models.
I select all the entities and unwrap via Python.
If I try:
I_D =[]
for i in gen_models:
I_D.append(i.LookupParameter("Unique ID").AsString())
OUT = I_D
is giving me the error:
"
AttributeError: 'NoneType' object has no attribute 'AsString'
"
if I try:
OUT = UnwrapElement(gen_models).Parameters
I get the list with all parameters as "Autodesk.Revit.DB.Parameter"
How do I access the value for each parameter?
Help greatly appreciated!
Solved! Go to Solution.