The Shadow macro will create vector based shadows of your CAD model, as well as reporting on the percentage of the surface that is shaded.

The latest version of this macro (v2) is an almost total rewrite of version 1, and is compatible with DataCAD versions 23.00.03 and later only. If you have an earlier version of DataCAD you can still use version 1 of this macro which you will find here (compatible with DataCAD version 11 upwards).
A video demonstrating this macro is probably the best way to describe the macro's functionality, and can be viewed using the button at right:     
View Demo Video
 

Following is a list of some of the macro's functionality:

- Can cast shadows of most DataCAD entity types (including Smart Entities, although voids in Smart Entities are not supported).
- Calculates the appropriate sun angles for any date/time/location. (Does not allow manual entry of angles).
- Can cast shadows onto polygon surfaces at any angle. Multiple polygons are handled (e.g. TIN surfaces, Ruled surfaces).
- Entites can be selected using the normal Entity/Group/Area/Fence selection, or by complete layer(s) (or by a combination of both selection methods).
- Can report the shaded area and percentage of the surface that is shaded.
- Suns-Eye views can be stepped through down to 1 minute intervals (available intervals are configuragle in minutes, hours or days).
- Suns-Eye views can report the percentage of surface shading without the need to actually create shadows.
- Shadows can be created as polylines or 3d lines. Polyline shadows can be unfilled or filled (with opacity and outline settings allowing for tranparent fills with or without outline). 3d lines are created as an outline of the shadow (for the most part any internal lines are removed).
- Create shadows on existing or new layers. The macro can assign default layer names (based on date/time of the shadow), and the default format is highly user configurable.
- Identify function can display location, date, time, altitude and azimuth that were used to calculate previously created shadows.
- Create 2D shadow diagrams for placing on Elevation drawings etc.
- Pertinent settings are stored in the drawing file (different colour/layer/outlineline types can be assigned to multiple date/time combinations and easily recalled).

Compatibility: This macro is compatible with DataCAD versions 23.00.03 onwards only. It is NOT compatible with Spirit or with earlier versions of DataCAD.

 
Get the macro (v2.0.2.9)

Unzip files to your DataCAD Macros folder - see the readme file included in the zip for instructions

Please Note: As a (very) small software developer with products relevant to quite a small audience my files are not downloaded by many people. Browsers may show warnings about (or even block) downloads for reasons such as "file isn't commonly downloaded and may be dangerous".
I do not believe there is anything dangerous in my downloads. I have submitted this particular download to Virus Total, and 62 of 64 virus detection programs tested flagged it as "Clean" (1 reported it as "Malicious" and 1 as "Suspicious" - I believe these are false positives). Many anti-virus vendors allow you to submit false positive detections for further analysis, but not all of them make it easy and I don't have the resources to follow up all false positives. If your particular anti-virus flags my downloads please submit it to them or let me know and I will follow it up if I can.

Version History
v2.0.2.6  05 Aug 2025  Initial public release of Shadow version 2 macro.
v2.0.2.7 08 Aug 2025  Fix an issue with creating shadows from Suns-Eye views.
v2.0.2.8 09 Aug 2025  Fix an issue with selecting Smart Entities as Casting Entities. Fixed an issue with UTC+10:30 timezone selection in the Location form.
v2.0.2.9 09 Aug 2025  Fixed an issue that could cause corruption to smart entities when you processed a Sun-Eye view and the smart entities were selected as shadow casting entities.


 

Home
Hatches
Macros
Extrude
Shadow
Shadow Analysis
Spaces
Space Planner
NonPlanar
TextMan
Cover
dhBox
Zd
dhSave
TextMan
Cover
Layer Maker
Poly Edge Hide
Offset
Attribute Mgr
DCAL Resources
Guestbook
About
Contact / Mailing List
Contribute