SiteLocationLatitude Property |
The latitude of the site location.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic double Latitude { get; set; }
Public Property Latitude As Double
Get
Set
public:
property double Latitude {
double get ();
void set (double value);
}
member Latitude : float with get, set
Property Value
Double
ExceptionsException | Condition |
---|
ArgumentException |
When setting this property: The latitude value is out of range. It must be between -PI/2 and PI/2.
|
RemarksA property that contains the latitude of the site location.
The value of this property is in radians between +PI/2 and -PI/2.
When setting this property:
- Revit will attempt to match the coordinates to a city it knows about, and if a match is found, will set the
name accordingly.
- Revit will attempt to automatically adjust the time zone value to match the new Latitude value set using
[!:Autodesk::Revit::DB::SunAndShadowSettings::CalculateTimeZone]. For some boundary
cases, the time zone calculated may not be correct. You can set the TimeZone property directly to the
correct value if necessary.
- Revit will attempt to automatically update the weather station associated with the location's coordinates.
See Also