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

    Solar Panel Dynamic Component?

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    5 Posts 3 Posters 993 Views 3 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.
    • J Offline
      jeremy.hoerauf
      last edited by

      Is there a way to Geo-locate a dynamic component, but also using a copy function to space out the component to keep the distance between components the distance of the shadow at a time and day of the year?

      I'm sure there is a way but just need a little guidance.

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        A DC component is only geo-located from the SKP it's in.
        You can read a SKP's geo-location/shadow_info data using the DC's SUNELEVATION and SUNANGLE functions, and then calculate the plan-offsets from that [dx/dy]...
        Here's an example of a sun-elevation DC http://sketchup.google.com/3dwarehouse/details?mid=58f6f0aed311cf9c4af4635b6ebb0145&prevstart=0 so you could perhaps look at using that as a basis for doing the calcs...

        Assume the object's height is '1 unit', I think the offsets are
        dx=cos(SUNANGLE)/tan(SUNELEVATION) dy=sin(SUNANGLE)/tan(SUNELEVATION)
        Mutiply the two values by the real object's height to get the required offsets to avoid overshadowing at the time the data is read... πŸ€“

        TIG

        1 Reply Last reply Reply Quote 0
        • J Offline
          jeremy.hoerauf
          last edited by

          =(31.42*(sin(10))/(if((tan(sunelevation()))<0,(tan(sunelevation()))(-1),((tan(sunelevation()))))))+((31.42(sin(10))/tan(10)))

          This is the formula I used..however it does not match the length of the shadow at the specific sunelevation that is geo-located.

          Does the SunElevation Function in a dynamic component update everytime you change the time or location?

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            I would expect the DC to read the sun-position every time the DC is activated - e.g. with a onClick. but NOT every time the sun-position changed as there's no 'link'.
            I could envisage a Ruby script based observer spotting a change of the sun's details and then forcing a redraw of all of the related DCs, but that's another story...

            TIG

            1 Reply Last reply Reply Quote 0
            • R Offline
              RobbieN30
              last edited by

              I was a bit misled about the title about Solar Powered Component.

              I was like an "audio component"?
              I was looking for information about different types of solar equipment
              or even wind-powered ones to compliment my recent purchase of
              wind generator plans.

              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