The Autodesk.Revit.DB.Lighting.LightDistribution
class represents the distribution of light from a light source in Revit.
Gets or sets the position of the light source.
public XYZ Position { get; set; }
Gets or sets the direction in which the light source is emitting light.
public XYZ Direction { get; set; }
Gets or sets the type of light distribution. This can be set to either Ambient
, Point
, Spot
, or Web
.
public LightDistributionType Type { get; set; }
Gets or sets a value indicating whether the light distribution is currently selected.
public bool IsSelected { get; set; }
Gets the points that represent the distribution of light from the light source.
public IList<XYZ> GetDistributionPoints()
Sets the points that represent the distribution of light from the light source.
public void SetDistributionPoints(IList<XYZ> points)
The Autodesk.Revit.DB.Lighting.LightDistribution
class is used in Revit for controlling the distribution of light from a light source, such as a light fixture or the sun. The Position
and Direction
properties can be used to adjust the position and orientation of the light source, while the Type
property can be used to specify the type of light distribution. The GetDistributionPoints()
method can be used to obtain the points that represent the distribution of light from the light source, and the SetDistributionPoints()
method can be used to set these points.