City
Description:
An object that contains geographical location information for a known city.
An object that contains geographical location information for a known city.
Remarks:
This object contains longitude, latitude, time zone information for a city already known by Revit. Currently Revit does not the ability to add cities to the existing list. The list of known cities can be retrieved using the Cities property on the application object.
This object contains longitude, latitude, time zone information for a city already known by Revit. Currently Revit does not the ability to add cities to the existing list. The list of known cities can be retrieved using the Cities property on the application object.
double angleRatio = Math.PI / 180; // ratio of Angle
// Get the Latitude information
double latiude = city.Latitude / angleRatio;
String latiudeInfo = "Latitude: " + latiude.ToString();
// Get the Longitude information
double longitude = city.Longitude / angleRatio;
String longitudeInfo = "Longitude: " + longitude.ToString();
// Get the TimeZone information
String timeZoneInfo = "TimeZone: " + city.TimeZone.ToString();
// Set the information text box.
string cityInfo = latiudeInfo + "\n" + longitudeInfo
+ "\n" + timeZoneInfo;
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Latitude | double | Latitude of the city | |
| Longitude | double | Longitude of the city | |
| Name | string | The name of the city | |
| TimeZone | double | Time-zone in which the city resides | |
| WeatherStation | string | An identifier for the nearest weather station | |
| IsReadOnly | bool | Identifies if the object is read-only or modifiable. | APIObject |