Skip to main content

Output parameters

The returnUrl in a launch link is a template. When the inspector taps Send to Calling Application, D-Calc replaces each ${name} placeholder in it with a value, and opens the result. For example:

https://example.com/done?id=${poleId}&net=${rsm1_net_act}&defect=${l1_d1_type}

becomes

https://example.com/done?id=A-1042&net=0.677&defect=SLICE
  • Each value is URL-encoded as it's filled in.
  • A placeholder for a level or damage the pole doesn't have, or a value it doesn't have, becomes empty.
  • Numbers use a dot for the decimal point, with up to 4 decimal places.
  • Values are imperial: inches, feet and PSI.

Use as many or as few placeholders as you need.

Pole​

PlaceholderValue
${poleId}The poleId from the launch link
${poleName}The pole's name
${description}The pole's notes
${ansiSpecies}The species' full name, such as Southern Pine
${ansiClass}The ANSI class
${ansiLength}The ANSI length, ft
${fiberStrength}Fiber strength, PSI
${isLinearTaper}true or false
${userEmbedment}Custom embedment, ft; empty when using the ANSI default

Each level​

Replace # with the level number: 1, 2 or 3.

PlaceholderValue
${dia#}Diameter, in
${circ#}Circumference, in
${dist_gl#}Distance from groundline, in (negative below ground)
${ansi_dia#}ANSI diameter at this height, in
${svg#}Always empty. Reserved for a drawing of the cross-section.

Remaining section modulus​

These are fractions of 1: 0.677 means 67.7%. They're rounded to 0.1%. A level with no diameter sends them empty, never 0.

PlaceholderValue
${rsm#_net_act}Net remaining section modulus: the lower of the next two. This is the main result.
${rsmx#_act}Remaining section modulus, perpendicular to the line (transverse)
${rsmy#_act}Remaining section modulus, in line
${rsm#_net_ansi}Net, as a fraction of a new ANSI pole's section modulus (can be over 1)
${rsmx#_ansi}Perpendicular, against a new ANSI pole
${rsmy#_ansi}In line, against a new ANSI pole

The _ansi values are empty when the pole has no ANSI details.

Section properties​

Each takes a suffix: _act for the damaged section, _org for the undamaged section at the measured diameter, or _ansi for a new ANSI pole at this height. For example, ${msx1_act}.

PlaceholderValue
${msx#_…}Section modulus, perpendicular (transverse), in³
${msy#_…}Section modulus, in line, in³
${mix#_…}Moment of inertia, perpendicular, in⁴
${miy#_…}Moment of inertia, in line, in⁴
${area#_…}Area, in²

Each damage​

Replace the first # with the level (1–3) and the second with the damage (1–4).

PlaceholderValue
${l#_d#_type}HEART, POCKET, SHELL, SECTION, WEDGE, CAVITY, BOLT or SLICE
${l#_d#_param1} … ${l#_d#_param4}The damage's measurements, in the order in Damage types and measurement order

Damages are numbered in the order they were added on that level.

Sending them back in​

D-Calc reads these same names in a launch link (see Input parameters). If your app stores the values it gets back, send them in the next link and the pole reopens with its levels and damages.