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
31
Last Active
Roles
Member
Points
7
Background (Architectural, Engineering, Developer, etc)
Civil Engineering
Badges
2

Activity

  • FDinis earned a promotion to Level 2.
    Level up!
    September 16
  • FDinis earned the Paging Mr. F badge.
    Mentioning someone in a post is a great way to direct comments.
    August 26
  • FDinis earned the First Post badge.
    You are in there and getting involved. Have some free points!
    August 25
  • FDinis earned a promotion to Level 1.
    You are at the lowest level. Build up your points to unlock new features!
    August 25
  • Welcome Aboard!
    August 25