Skip to content

Object model 5.8.0: Vim.SunAndShadowSettings (sun of the exported 3D view) - #66

Draft
SamuelAB-VIM wants to merge 1 commit into
developfrom
sam/sun-settings
Draft

SamuelAB-VIM wants to merge 1 commit into
developfrom
sam/sun-settings

Conversation

@SamuelAB-VIM

@SamuelAB-VIM SamuelAB-VIM commented Oct 26, 2026 •

Copy link
Copy Markdown

Adds one table, Vim.SunAndShadowSettings: the sun of an exported 3D view, as Revit's Sun Settings dialog has it. Object model 5.8.0 (additive only).

One row per exported 3D view, linked to its View:

  • the mode (StillImage, OneDayStudy, MultiDayStudy, Lighting), the active frame time, the study start and end, and the frame count;
  • the sun's altitude and azimuth in radians, clockwise from true north. Revit computes these for the active frame, or they are the fixed angles in Lighting mode (with RelativeToView);
  • the place the sun is computed for: latitude and longitude (radians), time zone, project location name;
  • the ground plane (on or off, and its Level), plus the view's Cast Shadows, sunlight intensity and shadow intensity.

The project's place on Earth was already in BimDocument (latitude, longitude, time zone, place name) and its angle to true north in BasePoint, so nothing changes there. To turn the azimuth into a model direction, subtract BasePoint.AngleToTrueNorth.

5.8.0 is numbered against develop. Two other open drafts (62, 65) also say 5.8.0, so renumber if one of them lands first. This table replaces the sun part of 62.

Exporter side: vimaec/vimaec#1184.

🤖 Generated with Claude Code

One row per exported 3D view: Revit's Sun Settings (type, active frame time, study start/end, frames, DST),
the sun's altitude and azimuth (computed for the active frame, or the fixed angles in Lighting mode, with
RelativeToView), the place the sun is computed for (latitude, longitude, time zone, project location name),
the ground plane (on/off and its level), and the view's Cast Shadows, sunlight and shadow intensities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant