Input parameters
All parameters are optional, except poleId on viewPole.
Pole and level 1
These are D-Calc 5's parameters, and the ones most integrations need.
| Parameter | Type | Meaning |
|---|---|---|
poleId | text | Your ID for the pole, such as the feature's GlobalID. D-Calc uses it to recognize the pole when it's opened again, and sends it back as ${poleId}. |
poleName | text | The pole's name |
description | text | Notes |
diameter | number, in | Level 1 diameter. Must be greater than 0. |
Circumference | number, in | Level 1 circumference. Used only if diameter is absent: D-Calc divides it by π. |
DistGL | number, in | Level 1 distance from groundline. Negative is below the groundline. |
Species | text | ANSI species: the name or the abbreviation (see Species) |
Class | text | ANSI class: H-6 to H-1, 1 to 7, 9, 10. H2 and h-2 also work. |
Length | number, ft | ANSI length: 20 to 125, in steps of 5 |
returnUrl | URL template | Where to send the results. See Output parameters. |
projectName | text | Accepted and ignored: the iOS app has no projects |
:::info Species, Class and Length go together
D-Calc applies Species, Class and Length only when all three are present and make a pole that exists in ANSI
O5.1. Otherwise it ignores all three, and the pole opens without ANSI details. When they're applied, D-Calc fills in
the species' fiber strength unless the link sets fiberStrength.
:::
Everything else
D-Calc also reads the names it writes to a return URL, so a pole can be rebuilt in full: with its other levels and its damages. If your app stores what D-Calc returned, send it back in the next link and the pole reopens as it was.
| Parameter | Type | Meaning |
|---|---|---|
ansiSpecies, ansiClass, ansiLength | as above | Other names for Species, Class and Length. If both are sent, Species/Class/Length win. |
fiberStrength | number, PSI | Fiber strength, instead of the species default. Greater than 0. |
userEmbedment | number, ft | Custom embedment depth. Greater than 0. |
isLinearTaper | true / false | Linear taper. 1/0 and yes/no also work. |
dia1, dia2, dia3 | number, in | Diameter of level 1, 2 or 3 |
circ1, circ2, circ3 | number, in | Circumference of a level; used only if its dia is absent |
dist_gl1, dist_gl2, dist_gl3 | number, in | Distance from groundline of a level |
l1_d1_type … l3_d4_type | text | The type of damage d (1–4) on level l (1–3). See below. |
l1_d1_param1 … l3_d4_param4 | number | That damage's measurements, in the order below |
- For level 1,
diameter,CircumferenceandDistGLare used whereverdia1,circ1anddist_gl1aren't given. - A level is created only if the link has something for it. A link with levels 1 and 3 gives a pole with levels 1 and 3.
- A damage with a missing or unknown type is skipped. A missing or out-of-range measurement (an angle outside 0–359, or a negative length) is left empty for the inspector to fill in.
- Computed results (
rsm1_net_act,msx1_organd the like) are accepted and ignored: D-Calc always recalculates.
Damage types and measurement order
type | param1 | param2 | param3 | param4 |
|---|---|---|---|---|
HEART | shell thickness (in) | |||
SHELL | damage depth (in) | |||
POCKET | shell thickness (in) | pocket diameter (in) | angle to min shell (°) | |
SECTION | shell thickness (in) | circumference missing (in) | depth missing (in) | angle to opening (°) |
WEDGE | circumference missing (in) | depth missing (in) | angle to damage (°) | |
CAVITY | circumference missing (in) | angle to opening (°) | shell thickness at opening (in) | nest diameter (in) |
BOLT | angle to opening (°) | hole diameter (in) | ||
SLICE | depth missing (in) | width missing (in) | angle to damage (°) |
Types aren't case-sensitive. The order is fixed, and the same in both directions. (It isn't always the order the app shows the fields in: Cavity's angle is second here.)
Species
Use the full name or the abbreviation. Capitals, spaces, hyphens and underscores are ignored, so douglas fir,
Douglas-fir and DF are the same.
| Species | Abbr. | Species | Abbr. |
|---|---|---|---|
| Alaska Yellow Cedar | AYC | Redwood | RW |
| Douglas-fir | DF | Sitka Spruce | SS |
| Engelmann Spruce | ES | Southern Pine | SP |
| Jack Pine | JP | Western Fir | WF |
| Lodgepole Pine | LP | Western Hemlock | WH |
| Northern White Cedar | NWC | Western Larch | WL |
| Ponderosa Pine | PP | Western Red Cedar | WRC |
| Red Pine | RP | White Spruce | WS |
Examples
A new pole from a feature, measured by circumference at the groundline, with ANSI details:
dcalc://createPole?poleId=A-1042&poleName=Tower%2042&Circumference=32&DistGL=0&Species=Lodgepole%20Pine&Class=3&Length=40
A pole with heart rot already entered: 29 in circumference at the groundline, a 1 in shell, Southern Pine Class 5, 35 ft. It opens at 62.4%.
dcalc://createPole?poleId=10BAC&poleName=10BAC&Circumference=29&DistGL=0&ansiSpecies=SP&ansiClass=5&ansiLength=35&l1_d1_type=HEART&l1_d1_param1=1
Two levels, with a woodpecker cavity on level 2 at 35 ft (420 in):
dcalc://createPole?poleId=T-7&dia1=14&dist_gl1=0&dia2=12.73&dist_gl2=420&l2_d1_type=CAVITY&l2_d1_param1=2&l2_d1_param2=180&l2_d1_param3=2&l2_d1_param4=6