Solar Panel Dynamic Component?
-
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.
-
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'sSUNELEVATION
andSUNANGLE
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... -
=(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?
-
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... -
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.
Advertisement