Visual Sun Chart - Solar Geometry Software
 Home – Introduction
 Tutorials
 System Requirements
 Purchase

 Solar Access
 Declination

 Upgrade
 Support

 Visual Sun Chart > Support > DXF Export
 
DXF Export
 
Visual Sun Chart exports CAD drawings in DXF format. These drawings can be imported into CAD programs like AutoCAD and TurboCAD. We'll show you how to do that here, and also provide technical notes at the end for advanced users.
 
First, create a new Sun Chart, and set the latitude to 42.5 degrees North.
 
Visual Sun Chart
Visual Sun Chart is a graphics
program for visualizing solar
shading from proposed buildings.
For more information see:
www.VisualSunChart.com
 
Then select to create a new Building, and enter these dimensions in the Edit Building window:
 
Object Name            Main Wall Width = 10
 House 1              Main Wall Height = 8

Offset from           Main Wall Gable Height = 10 ON
Scene Origin
 X = 0                Depth of Object = 10
 Y = 0                 Rotation Angle = 0
 Z = 0
                     Roof:  ON
                     Eave Overhang = 2
                     Rake Overhang = 2
                     Vertical Height = 1
  Then select to create a new Tree with these dimensions:
 
Object Name                Height #4     Width #4
 Tree 1                      14            12

Offset from                Height #3     Width #3
Scene Origin                 11            14
 X = 10 West(-)
 Y =  4 South(-)           Height #2     Width #2
 Z =  0                       8            12

Tree Top    Trunk Base     Height #1     Width #1
Height:     Width:            7             2
 15.5        2
 
The Sun Chart should look like this (from the viewing direction shown at right):
 
Scene of house and tree Viewpoint Direction of Skydome Sun Chart
 
Save the Sun Chart, and then export the chart by selecting File > Export > DXF.
 
 
AutoCAD
 
This section covers how to import and display the DXF file in AutoCAD 2002. The next section covers TurboCAD 8.1. Skip to the next section if you are using TurboCAD instead of AutoCAD.
 
In AutoCAD select File > Open, and then set “Files of Type” to DXF. Then browse to the DXF file you saved, and Open it.
 
After the file opens, select View > Zoom > Extents.
 
Next we'll set up a viewing direction. Select View > 3D Views > Viewpoint. Then the AutoCAD viewpoint compass and axis tripod appear. This compass is similar to the Viewing Direction window in Visual Sun Chart, except in AutoCAD's compass the circles are 90 degrees apart, while in Visual Sun Chart those circles are in 45 degree intervals.
 
In the AutoCAD viewpoint compass, click in the inner circle's lower-right quadrant, as shown here: Viewing Direction
 
The drawing will appear like this:
 
Sun Chart
 
Now we'll render the scene. Select View > Render > Render. The Rendering options window appears. In the Rendering options window, click Render.
 
If the Rendering options window had its original default settings, the scene is rendered like this:
 
Rendering
 
 
TurboCAD
 
This section covers how to import and use the DXF file in TurboCAD 8.1 Standard.
 
In TurboCAD select File > Open, and then set “Files of Type” to DXF. Then browse to the DXF file you saved, and Open it.
 
After the file opens, select View > Zoom > Extents.
 
Then select View > Camera > Isometric > SE.
 
The drawing will appear like this:
 
Sun Chart
 
Notice that the yellow Sun paths are not clearly visible on the drawing's white background. Let's change the color of the Sun paths now. The Sun paths consist of polylines, all in one layer. To change the color of all the Sun path lines, simply change the layer color. To do that, select Options > Layers, find the Layer Name SUN_PATHS, click on its color, scroll down to the bottom of the list of colors, and select “Orange” (the second to last color). Click OK to close the Layers window, and the drawing will look like this:
 
Sun Chart
 
You can also try other colors. And you can change the colors of other parts of the Sun Chart. Each building component (such as Right Fascia, Left Fascia, etc.) is in its own layer, making it easy to change colors of parts of objects. This becomes more important when you render the scene (with each color filling its object facet).
 
Now we will work on rendering with solar shading. First we need to set the Sun position. We'll get the Sun position coordinates from Visual Sun Chart, and type those numbers into TurboCAD.
 
With the Sun Chart open in Visual Sun Chart, select:
 
File > Utilities > Angles for this Chart
 
Then set the date and time to December 20, 3:00 pm:
 
Sun Chart
 
That window shows the Sunlight Direction vector, which we will use in TurboCAD to model solar shading.
 
In TurboCAD, select View > Lights... to bring up the Light Properties window. Click “New.” The Light Parameters window for a new light source appears. Set the Light Type to DIRECTIONAL – ON, and change the color to White:
 
Sun Chart
 
Remember to make sure that the ON button is pressed down. It can be easy to forget to turn a light source On.
 
The direction numbers (0.648709, 0.731650 and -0.209438) are the Sunlight Direction numbers from the Visual Sun Chart Angles for this Chart window (see above). You can type those numbers into that TurboCAD window, or simply copy/paste each number.
 
Now let's set up a second light source to provide some light within the shadows, so that the shadows do not totally black out parts of the drawing. In the Light Properties window, click “New.” This time, instead of Directional, we will choose HEADLIGHT. Remember to press the ON button, and change the color to White.
 
Now the Light Properties window should have two light sources listed. Click OK to close this window and return to the main TurboCAD program window.
 
Next we will set the Camera Properties. Select View > Camera > Properties...
 
In the Camera Properties window, select Quality in the left pane, then set Rendering Type to LightWorks, and set Rendering Mode to Raytrace Full:
 
Camera Properties
 
Make sure “Perspective View” is UNCHECKED.
 
Finally, let's tell TurboCAD to view the drawing from the Northwest, so that we can get a better view of where shade from the tree will strike the building. Select:
 
View > Camera > Isometric > NW
 
Now we're ready to render. To render the scene, select:
 
View > Camera > Quality Render
 
The scene is rendered like this:
 
First Rendering
 
Next, let's put a ground level plane in the scene, to show shade striking the ground near the building. We'll turn off rendering while we work on the drawing, and render again later. To turn off rendering, press the Escape key.
 
Now that we are in drawing mode instead of render mode, let's switch to Plan View. Select:
 
View > Camera > Plan > By World
 
You should be looking straight down at the scene now. Any drawing we do here will be done on the X,Y plane. We'll draw a box as a rectangle in this view.
 
First we'll create a new layer for the new entity.
 
To create the new layer, select Options > Layers... Then click “New.” Then scroll down to the new layer, usually called “Layer 1,” click on its name, and type the name GROUND for this layer. Then click on that new layer's color and change it to White.
 
Now we're ready to draw the rectangle.
 
Select Insert > 3D Object > Box. Then you are prompted to click on the first vertex. This will be the upper left corner. Click to the left and above the scene objects. Then click the second vertex, which will be the lower right corner, to the right and below the scene objects. You should now have a rectangle surrounding the building and tree.
 
In one of the TurboCAD menus usually below the drawing, there should be 3 numbers specifying the the Length, Width and Height of this new box. The Height is originally Zero. Set it to -1. It must be negative, for the box to extend below ground level (instead of above ground). After setting the Height to -1, press the Enter key.
 
Now we need to put the box in the GROUND layer. Click on the Arrow selection tool, then click on one of the rectangle's borders to make the rectangle the current object, then Right click on one of the rectangle's borders and select Properties. Under “General” change the Layer from 0 to GROUND, under “Pen” set the color to White, and click OK. Then click outside of the drawing area to unselect the rectangle. It will disappear because it is set to the same color as the background, but it will reappear later.
 
The new ground plane is now defined. Let's change the view and render again.
 
Set the view to Isometric Northwest: View > Camera > Isometric > NW
To render, select: View > Camera > Quality Render
 
The scene is rendered with the new ground plane:
 
First Rendering
 
Note:
In some programs you can use Ambient lighting instead of Headlight.
 
 
DXF Technical Notes
 
In the DXF files exported from Visual Sun Chart, all building facets and tree facets are exported as 3DFACE entities. Each Gable Wall consists of two 3DFACE entities, with the border between them turned off. Likewise, the Gable Rake fascias each consist of two 3DFACE entities with the borders between them turned off.
 
All 3DFACE entities except tree tops are 4-point facets. Tree tops are 3-point facets, but we include a 4th point equal to the 3rd point for safety. The DXF standard allows DXF files to not include the 4th point if it is equal to the 3rd point, but we include it anyway (in tree tops), in case a CAD program requires 4-point 3DFACEs.
 
All outward faces of 3DFACEs, except Roof Bottoms, should have Counter-Clockwise (CCW) Vertex Winding. If you find any other 3DFACE entities that do not have CCW winding, let us know. To be safe, you can select to render both sides of 3DFACE entities, which is the default in many CAD programs.
 
Programmers should be able to identify facets by the Layer Name and Comments (DXF comments are included where a layer name is not enough to identify the type of facet).
 
In documenting the type of facet (in Layer Names and Comments), sometimes the words FRONT, BACK, LEFT and RIGHT are used. This terminology represents the building before it is rotated. Assume the building is not rotated when interpreting these terms; the Front Wall faces South, the Back Wall faces North, the Left Wall faces West, and the Right Wall faces East. Each wall also has a Left and Right Side; the Left Side of the Front Wall faces West, while the Left Side of the Back Wall faces East.
 
 
 
Copyright © 2008 by Visual Sun Chart. All rights reserved.
Visual Sun Chart is a trademark of: Visual Sun Chart, P.O. Box 221190, Sacramento CA 95822 USA
www.VisualSunChart.com     Contact us
Tuesday, 06-Jan-2009 09:35:10 GMT