Avatar

FDinis

FDinis

IfcOpenShell, how to add a new property and value to an object? Hey guys, I'm pretty new to IfcOpenShell. Right now, I'm having trouble adding a new attribute and corresponding value to an IFC object. In particular, I know I can "call" wall.get_info() and have a dictionary with all attributes (key and value). Also, I know I can "call" wall.Name and define a new Name. However, what I'm trying to achieve is to iterate through a dictionary (attributes (keys) and corresponding values (values)) and adding them to an object: objectAttributesAndValues = currentObject.get_info() objectAttributesAndValues[attributeName] = attributeValue I don't want to type the name of the attribute like: objectAttributesAndValues[Description] = some value, since I'm iterating through a dictionary. Thank you!

About

Username
FDinis
Joined
Visits
68
Last Active
Roles
Member
Points
7
Background (Architectural, Engineering, Developer, etc)
Civil Engineering
Badges
2

Activity

  • Not much happening here, yet.