Load Generator Agent Skill
You are an agent that retrieves wind speeds, snow loads, wind pressures, and seismic data for any location worldwide using the SkyCiv Load Generator API (standalone.loads namespace). This skill covers all functions, parameters, and design codes.
Prerequisite: Always begin a session with
S3D.session.startas the first function. See theskyciv-coreskill for auth, options, and the request/response envelope.
Session Start#
Use standalone.loads.start instead of S3D.session.start when running load-generator-only sessions:
Alternatively, S3D.session.start also works for sessions that combine load generation with structural analysis.
Supported Design Codes#
design_code value | Standard | Load Types |
|---|---|---|
asce7-10 | ASCE 7-10 | Wind, Snow |
asce7-16 | ASCE 7-16 | Wind, Snow, Seismic |
asce7-22 | ASCE 7-22 | Wind, Snow, Seismic |
as1170 | AS/NZS 1170 | Wind, Snow, Seismic (NZS 1170.5) |
en1991 | Eurocode EN 1991 | Wind, Snow |
nbcc2015 | NBCC 2015 | Wind, Snow |
nbcc2020 | NBCC 2020 | Wind, Snow |
is875 | IS 875 | Wind |
nscp2015 | NSCP 2015 | Wind, Snow, Seismic |
cfe-viento | CFE Viento (Mexico) | Wind |
cte-db-se | CTE DB SE-AE (Spain) | Wind |
Use standalone.loads.getCountryDesignCodes to fetch the current supported list dynamically.
standalone.loads.getCountryDesignCodes#
Returns all supported design codes grouped by country and load type.
Response includes both human-readable (country_design_code) and API-key versions (API_design_codes). Always use the API_design_codes values in your requests.
standalone.loads.getSiteData#
Get site-specific wind speed, snow load, and seismic data for a location with minimal input. Useful for quickly determining site parameters before running a full load calculation.
Response structure:
standalone.loads.getLoads#
The main function. Returns full design wind pressures and/or snow loads for a building based on site location and building parameters.
site_data Object#
Defines the location and design code parameters.
Common properties (all design codes)#
| Key | Type | Description |
|---|---|---|
design_code | string | API design code value (see table above) |
project_address | string | Site address โ uses Google Maps to geocode. Provide this OR lat/lng. |
lat | float | Latitude (e.g. 41.8781 for Chicago) |
lng | float | Longitude (e.g. -87.6298 for Chicago) |
wind_direction | string | Wind direction (towards): N, NE, E, SE, S, SW, W, NW |
Design code specific โ site_data#
| Key | Design Code | Options |
|---|---|---|
risk_category | ASCE 7 | I, II, III, IV |
site_class | ASCE 7-16 | A, B, C, D, D-default, E |
site_class | ASCE 7-22 | A, B, BC, C, CD, D, DE, E |
site_class | NBCC 2020 | A, B, C, D, E |
exposure | ASCE 7 / NSCP 2015 | B, C, D (required for topography) |
ari | AS/NZS 1170 | Annual Recurrence Interval in years: 1, 5, 10, 20, 25, 50, 100, 200, 500, 1000, 2000, 5000, 10000 |
sls_and_uls | AS/NZS 1170 | Object: { country, design_working_life, importance_level } โ or false when using ari |
sls_and_uls.country | AS/NZS 1170 | "australia" or "new_zealand" |
sls_and_uls.design_working_life | AS/NZS 1170 | "construction_equipment", "5_years", "25_years", "50_years", "100_years" |
sls_and_uls.importance_level | AS/NZS 1170 | "1" through "5" |
wind_region | AS/NZS 1170 | A0โA5, B1, B2, C, D, NZ1โNZ4 (optional override) |
recurrence_interval or ari | NBCC | "10_years", "50_years" |
importance_level | NBCC | "low", "normal", "high", "post_disaster" |
limit_state | NBCC | "SLS", "ULS" |
importance_category | IS 875 | I, II, III, IV |
structure_class_is875 | IS 875 | I, II, III, IV |
occupancy_category | NSCP 2015 | I, II, III, IV, V |
return_period | CFE Viento | "10-anos", "50-anos", "200-anos" |
barometric_pressure | CFE Viento | Default 760 mm Hg |
ambient_temperature | CFE Viento | Default 25 ยฐC |
site_data.topography sub-object#
| Key | Design Code | Description |
|---|---|---|
wind_direction | All | Wind direction for topographic analysis |
topo_image | All | true to return a base64 elevation image |
country | All | Country name |
terrain_category | AS/NZS 1170 | CAT1, CAT2, CAT2.5, CAT3, CAT4 |
terrain_category | EN 1991 (UK/Ireland) | 0, I, II, III, IV |
terrain_category | IS 875 / CFE Viento | 1, 2, 3, 4 |
season_month | EN 1991 | For Belgium, France, UK, Ireland |
distance_inside_town | EN 1991 (UK/Ireland) | Default 20 m |
distance_from_shore | EN 1991 (UK/Ireland) | Default 100 m |
displacement_height | EN 1991 (UK/Ireland) | Default 0 |
snow_region | AS/NZS 1170 | AU: AN, AC, AS, AT โ NZ: N1โN5 |
snow_terrain_class | AS/NZS 1170 | 1, 2, 3 |
snow_area_classification | AS/NZS 1170 / NBCC | "alpine", "sub-alpine" (AS) or "rural", "exposed-north-treeline" (NBCC) |
User-defined overrides (optional)#
| Key | Applicable codes |
|---|---|
wind_speed_override | ASCE 7, AS/NZS 1170, EN 1991, IS 875, NSCP 2015 |
hourly_wind_pressure_override | NBCC |
snow_load_override | ASCE 7, AS/NZS 1170, EN 1991, NBCC |
min_roof_snow_load | ASCE 7 |
Seismic parameters inside site_data โ ASCE 7-16 / ASCE 7-22#
building_data Object#
Defines the structure geometry and load calculation parameters.
Structure types (building_data.structure)#
| Value | Notes |
|---|---|
"building" | Default โ enclosed/partially-enclosed/open buildings |
"freestanding_wall" | ASCE 7 and AS/NZS 1170 only |
"truss_tower" | ASCE 7 only |
"rooftop_equipment" | ASCE 7-16/22 only |
"solar_panel" | ASCE 7 and AS/NZS 1170 only |
"signboard" | EN 1991 only |
"pole" | EN 1991 only |
"open_frames" | ASCE 7-16/22 only |
"circular-bin" | ASCE 7 and AS/NZS 1170 only |
Roof profiles (building_data.roof_profile)#
| Value | Enclosure |
|---|---|
"gable" | enclosed, partially-enclosed, partially-open |
"monoslope" | enclosed, partially-enclosed, partially-open |
"hip" | enclosed, partially-enclosed, partially-open |
"pitched" | open |
"troughed" | open |
"open-monoslope" | open |
Wind parameters (building_data.wind_parameters)#
| Key | Description |
|---|---|
structure_type | "mwfrs" (Main Wind Force Resisting System) or "cladding" (Components & Cladding) |
enclosure | "enclosed", "partially-enclosed", "partially-open", "open" |
wind_blockage | ASCE 7/CFE/AS: "clear" or "obstructed" โ AS/NZS 1170: "empty" or "blocked" |
gust_effect_factor_override | ASCE 7-10/16 and NSCP 2015: user-defined Gust Effect Factor |
Set wind_parameters: false to skip wind load calculation.
Building dimensions (building_data.building_dimensions)#
| Key | Description |
|---|---|
length | Building length |
width | Building width |
mean_roof_height | Mean roof height |
height | Wall height (used when mean_roof_height not the primary height input) |
roof_angle | Roof pitch angle in degrees |
Snow parameters (building_data.snow_parameters)#
Set snow_parameters: false to skip snow load calculation. Otherwise provide snow-relevant keys per design code.
Seismic parameters (building_data.seismic_parameters)#
ASCE 7-16#
structure_system options: "steel-mrf", "concrete-mrf", "steel-eccentrically-braced", "steel-buckling-restrained", "others".
NZS 1170.5#
NSCP 2015#
Freestanding wall dimensions#
Circular bin / tank dimensions#
site_analysis Object (Optional)#
Run wind calculations for all 8 directions and find the governing direction. Provide per-direction terrain/exposure categories and topographic factors.
ASCE 7 / NSCP 2015#
AS/NZS 1170.2#
project_details Object (Optional)#
Used in generated reports.
| Key | Description |
|---|---|
name | Project name |
id | Project ID |
company | Company name |
designer | Designer name |
client | Client name |
notes | Notes |
units | "imperial" or "metric" (ASCE 7 only) |
pressure_unit | Output pressure unit (AS/NZS 1170 only) |
Response Structure#
wind_pressure.pressuresโ array of pressure objects, one per surface/zone combinationpos_Cpiโ pressure with positive internal pressure coefficientneg_Cpiโ pressure with negative internal pressure coefficient- Values can be scalars (one elevation) or arrays (multiple elevations)
Other Parameters#
| Parameter | Description |
|---|---|
api_version | Default 2.1. Pass 2 for the previous version. |
report | Set false to skip report generation and reduce response time. |
Full Examples#
ASCE 7-16 Wind + Snow#
AS/NZS 1170.2 Wind (Australia)#
EN 1991 (UK)#
Key Tips#
- Address vs coordinates: Use
project_addressfor simplicity. Uselat/lngfor precision or when the address is ambiguous. - Skip unwanted loads: Set
wind_parameters: falseorsnow_parameters: falseinbuilding_datato skip those calculations and reduce response time. - Skip report generation: Pass
"report": falseat the top level ofargumentsto speed up the call when you only need numeric results. - Discover available sections: Run
standalone.loads.getCountryDesignCodesfirst if you're unsure whichdesign_codeto use for a given country. - Topographic factor: Set
topo_image: trueinsite_data.topographyto receive a base64 PNG of the site elevation profile. - All-direction analysis: Use
site_analysisto run all 8 wind directions in one call and get the governing direction automatically.