formZ SDK | 5.0 API Reference | Project | Modeling | Lights Manager

# fz_lite_sun_city_add

Description

Add a new city to the geography database.

Plugin Prototype

fzrt_error_td fz_lite_sun_city_add(

fzrt_int | windex,
char * | city_name,
char * | country_name,
double | latitude,
double | longitude,
double | time_zone,
fzrt_int * | city_id )

Parameters

windex [Input]

project window index

city_name [Input]

city name

country_name [Input]

country name

latitude [Input]

latitude

Range: -PI/2 <= latitude <= PI/2

longitude [Input]

longitude

Range: -PI <= longitude <= PI

time_zone [Input]

time zone

Range: -12.0 <= time_zone <= 12.0

city_id [Result, Optional]

city id

Returns

Error codes

Availability

5.0.0.0

Example Files

util_lights.fsl

See Also

fz_lite_sun_city_delete,

Function Set

fz_lite_fset

Defined in

fz_lite_api.h