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

    Counting sub-components in a DC

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    3 Posts 2 Posters 1.3k Views 2 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.
    • D Offline
      danbig
      last edited by

      Hi -

      Is there a function I can use to count sub-components in a DC?

      I wish there were something like

      =COUNTIF(Component!Element1)

      Where Component is the top-level DC, and Element1 is a subcomponent that is repeated many times within the dynamic component.

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        Are you using the COPIES feature to create the copies?

        If so, the countof a particular sub-component would be =ComponentName!COPIES+1

        Hi

        1 Reply Last reply Reply Quote 0
        • D Offline
          danbig
          last edited by

          @unknownuser said:

          Are you using the COPIES feature to create the copies?

          Sometimes. I'd prefer to use a direct count of the component, if possible.

          When I do use the COPIES function, the component I want to count is embedded a few levels in. So I might have:

          First Level: Main DC
          Second Level: Component to copy
          Third Level: Component to count (say 10 copies of this component for every Second Level component)

          I suppose I could use the COPIES function on the second level, and multiply by the copies of the Third Level component.

          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