You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there! I'm currently looking into an IFC File and what I want to do is to:
[ x ] filter for a type e.g. IfcWallType
[ x ] Chose a specific Wall Type (e.g. Outer Walls)
[ x ] Get a Property Sets of Outer Walls (e.g. time frame of change)
[ x ] Get the value of time frame of change (which is modeled as IfcPropertyListValue)
[ ] Set a new value for time frame of change
When trying to set the property with the following code snippet, I'm getting an AttributeError: entity instance of type 'IFC4.IfcPropertyListValue' has no attribute 'NominalValue' and I couldn't figure out a way to solve it yet.
ifcopenshell.api.run(
"pset.edit_pset",
file=ifc_file, # my ifc filepset=ifc_file.by_id(pset["id"]), # chosing the propertyset in my file by idproperties= {propname:future_value} # passing the name of the property and the future value
)
Please let me know if I can help with additional information or the information provided is not sufficient to answer my question. Essentially I think I need a pointer in a direction regarding the ListValues. Thank you in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey there! I'm currently looking into an IFC File and what I want to do is to:
IfcWallType
Outer Walls
)Outer Walls
(e.g.time frame of change
)time frame of change
(which is modeled as IfcPropertyListValue)time frame of change
When trying to set the property with the following code snippet, I'm getting an
AttributeError: entity instance of type 'IFC4.IfcPropertyListValue' has no attribute 'NominalValue'
and I couldn't figure out a way to solve it yet.Please let me know if I can help with additional information or the information provided is not sufficient to answer my question. Essentially I think I need a pointer in a direction regarding the ListValues. Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions