Working with ifc-attributes
-
hello,
i have to dive ibnto bim and ifc-parameters.i must confess, that i cnnot find the correct parameters in the compo-instance oder definitions in the ruby-api.
so for the start
if i iterate thru comp.-instances in the model,
is there a way for examlple to
-read out a table of all existing assigned (manually in the components in sketchup or imported)
-edit them (for example changing some letters)
-
and write them again back into attributes?
-
and eventually generate a new attribute with a new value ?
thanx for helping in advance.
stan
edit:
i found out, that the ifc-attributes are similar like other attributes dictionaries, so i could read them out bydictionaries = mycompo.attribute_dictionaries # Iterates through all dictionaries and prints to screen. dictionaries.each { |dictionary| puts dictionary.name } puts "" attrdict = mycompo.attribute_dictionaries['dynamic_attributes'] attrdict.each_pair { | key, value | puts "#{key} = #{value}" } -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement