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 by
dictionaries = 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}"
}
Who is online
Users browsing this forum: No registered users and 15 guests