sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Working with ifc-attributes

    Scheduled Pinned Locked Moved Developers' Forum
    1 Posts 1 Posters 6.9k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • artmusicstudioA Offline
      artmusicstudio
      last edited by

      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}"
      }
      
      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement