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

    Using SU version check to hide parts of a Dynamic Component

    Scheduled Pinned Locked Moved Developers' Forum
    1 Posts 1 Posters 115 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.
    • DavidBoulderD Offline
      DavidBoulder
      last edited by

      OK, so I'm incorporating the use of some dynamic components into a plugin I'm working on. The Dynamic component is adding features, but they aren't critical so things will still run under SU6, however some visual information on the DC will be misleading since it doesn't update based on changes to the attributes. So If someone opens a file in file in SU6 with these specific components, I want SketchUp to hide specific elements. I can select and hide, or probably better, put these sub-components on a layer that identifies them to be off in SU6, then the ruby can turn that layer off.

      But then If someone opens with SU7 a similar test can be run to make sure that this layer is turned back on. The alternative is to have separate sets of components for SU6 vs SU7 users, but I think it is cleaner to avoid that. This will be more consistent when passed between SU6 and SU7 users. Hopefully SU6 users will be a small percentage, but I know they are still there.

      Has anyone written a script like this before. I know it can be done, but just looking for insights from others who may have already done something like this, on the best approach.

      --

      David Goldwasser
      OpenStudio Developer
      National Renewable Energy Laboratory

      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