# Creating a sun using Dynamo

**URL:** <https://forum.dynamobim.com/t/creating-a-sun-using-dynamo/18881>\
**Category:** Revit\
**Created:** [February 8, 2018, 2:02am UTC](https://forum.dynamobim.com/t/creating-a-sun-using-dynamo/18881 "2018-02-08T02:02:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashwinash112](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@ashwinash112](https://forum.dynamobim.com/u/ashwinash112)\
**Post date:** [February 8, 2018, 2:02am UTC](https://forum.dynamobim.com/t/creating-a-sun-using-dynamo/18881/1 "2018-02-08T02:02:01Z")

</div>

I want to create a accurate sun using dynamo. im currently just placing a point at the origin and one on the surface on a spherical coordinate system and drawing a line between two points to get the sun direction adjusting the value,But i want it to be scientifically accurate how do i program azimuth and altitude in dynamo based on location???

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [February 8, 2018, 5:00am UTC](https://forum.dynamobim.com/t/creating-a-sun-using-dynamo/18881/2 "2018-02-08T05:00:08Z")

</div>

Look into the ladybug package as it has this very well documented, easy to use, and very fast for the amount of calculations (and other awesome things).

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [February 8, 2018, 8:06am UTC](https://forum.dynamobim.com/t/creating-a-sun-using-dynamo/18881/3 "2018-02-08T08:06:55Z")

</div>

You can use the SunSettings nodes for that

---

<div class="post-metadata">

**Author:** ![ashwinash112](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@ashwinash112](https://forum.dynamobim.com/u/ashwinash112)\
**Post date:** [February 8, 2018, 8:09am UTC](https://forum.dynamobim.com/t/creating-a-sun-using-dynamo/18881/4 "2018-02-08T08:09:05Z")

</div>

im working in a mass family there are no sun setting in mass family that why im creating it…as it is not possible to edit instance parameters of nested mass family in project
