How Can Engineers Automate Lateral Pile Analysis? LPILE Batch Runs, RSPile Python, and REST APIs
Compare lateral pile automation workflows: LPILE multi-file batch runs and Excel export, RSPile Python scripting, and PileCalc REST APIs.
Engineers can automate lateral pile analysis in three materially different ways: LPILE documents desktop batch runs across saved input files and Excel export; RSPile exposes a Python library that controls the installed desktop application through a local scripting server; PileCalc exposes authenticated HTTP endpoints that a script, service, CI job, or spreadsheet can call remotely. These workflows are not interchangeable, and automation alone does not make their models or results equivalent.
The capability statements below were checked against current vendor documentation on July 24, 2026. This is a workflow comparison, not a price or solver-accuracy ranking. For those questions, use the existing LPILE vs RSPile vs PileCalc comparison and PileCalc validation record.
What does “automate lateral pile analysis” mean?
An engineer searching for automation may be trying to remove a different bottleneck: rerunning existing files, generating a parametric study, connecting a calculation to another system, or driving a result from spreadsheet cells. Separate those jobs before choosing a tool.
| Workflow | Documented control surface | Best-aligned job | Important boundary |
|---|---|---|---|
| LPILE | Desktop multi-file batch analysis; multiple-length checks; Excel output export | Rerun established LPILE files and keep the existing desktop review path | Reviewed official sources did not document a general external programming API |
| RSPile | Python API library connected to the installed application by a local server | Custom local parametric studies and structured result extraction | The desktop application and a compatible scripting library are part of the run |
| PileCalc | Remote REST API using JSON POST; GET variant for Excel and similar clients | Server, script, CI, database, and spreadsheet integrations | Authentication, plan quotas, network availability, and API review controls apply |
What automation does LPILE officially support?
Ensoft's current LPILE description sheet explicitly lists batch analyses of multiple input-data files. It also documents checking multiple pile lengths, automated pushover and buckling studies, and exporting output graphics to preformatted Excel tabs with numerical values and graphs. The LPILE product page separately documents automatic checks of several pile lengths and up to 50 user-defined load cases in a model.
That makes LPILE's documented automation a strong fit when the source of truth is a set of reviewed LPILE input files. Batch execution removes repeated clicking without changing the program, file format, or established checking process. Excel export is an output workflow: it does not mean Excel is performing the p-y solution.
In the official LPILE product page, description sheet, and user-manual materials reviewed for this article, we did not find documentation for a general external programming API. That is a bounded source finding—not proof that no vendor-assisted or later capability exists. If a procurement or integration decision depends on programmatic control, confirm the current release and licensing terms directly with Ensoft.
How does RSPile Python scripting work?
Rocscience documents RSPile Scripting as a Python API for automating modeling workflows, parametric studies, and data management. Its scripting overview lists functions to open, save, and close models; modify soils, pile sections, and pile types; compute a model; obtain result tables and extrema; and import or export CSV. Scripts can run in RocScript or in an engineer's own Python environment.
This is a desktop-connected API. Rocscience's scripting-tools documentation says a local server listens for requests from the Python client and connects to the RSPile program; the script can start the application and server programmatically. The current getting-started tutorial states that RSPile 3.031 or later is required and that the installed Python library should match the RSPile version.
Rocscience also publishes a lateral pile optimization tutorial that varies pile diameter, computes models, and extracts results. It is a useful template for local parametric work, but a production study still needs explicit input provenance, failure handling, version pinning, and engineering review.
How is the PileCalc REST API different?
PileCalc's automation surface is an HTTP service rather than a Python library controlling an installed desktop process. A client sends a schema-validated JSON request to POST /v1/lateral with an API key in the bearer header and receives JSON containing head response, maxima, equilibrium checks, full depth profiles, convergence, and scientific metadata. The app, saved-analysis reruns, and public API all use the same registered analysis runner and request schema.
That interface is language-agnostic: Python, JavaScript, C#, a server workflow, or a CI job can make the same HTTP request. A GET variant exists for headerless callers such as Excel's WEBSERVICE(), but scripts should prefer POST so the key stays out of the URL. Current API access is included on Pro and Business plans, with plan quotas and burst limits documented in the API overview.
The lateral endpoint reference is the contract: request fields, response fields, runnable examples, and interpretation notes. A load sweep can return a proportional pushover series in one request, but that is still one model with a defined sweep—not a substitute for a controlled matrix of unrelated site or section assumptions.
Which automation workflow fits which job?
- Batch reviewed LPILE files: use LPILE's documented multi-file analysis so the source files and incumbent review workflow stay intact.
- Run custom local parametric studies in RSPile: use RSPile Scripting when Python should modify models, launch computations, and extract tables while the installed RSPile application remains the solver.
- Call lateral analysis from a service, script, database job, or CI pipeline: use a REST API when a remote, language-neutral contract is the important requirement.
- Drive a few reviewed inputs from a Windows spreadsheet: use an API-backed workbook only if the credential, URL length, platform, and recalculation limits are acceptable. The safe pattern is explained in Can You Run Lateral Pile Analysis in Excel?
- Prepare a static report or chart in Excel: use a program's export function. Do not imply that editing the exported sheet reruns the originating model.
What makes an automated study reproducible?
- Freeze a reviewed baseline. Store the complete model—not only the variables being swept—and identify the originating drawing, boring, laboratory data, load source, and revision.
- Declare the parameter matrix. State which inputs change, their units, bounds, increments, and rationale. Avoid silent defaults.
- Pin the software context. Record the program and version, input schema where applicable, analysis method, and relevant options. With RSPile, match the scripting library to the installed application; with an HTTP API, preserve the returned engine and schema metadata.
- Fail closed. Reject validation errors, authentication failures, non-converged solutions, missing results, and failed equilibrium checks instead of filling a table with unchecked values.
- Check representative cases independently. Review the baseline, extremes, and any discontinuity or unexpected trend in the original interface and, where appropriate, against a second method or program.
- Preserve inputs and outputs together. A chart without its model, versions, units, and status checks is not a reproducible calculation record.
What should never be automated away?
Automation can reduce transcription, run a declared case matrix, and make versioned inputs easier to reproduce. It cannot decide whether the site investigation is adequate, select a p-y curve outside its calibration range, establish the governing load combination, resolve contradictory data, or approve a foundation design. More runs do not create more evidence when every run inherits the same unsupported assumption.
Keep automated outputs within the evidence available: calculation assistance and sensitivity analysis are not licensed site-specific engineering judgment. Governing cases still require documented assumptions, structural and geotechnical limit checks, independent review, and approval by the responsible professional.
Primary sources and scope
- Ensoft, LPILE product page and LPILE description sheet: documented batch, multiple-length, load-case, automated-study, and Excel-export capabilities.
- Rocscience, RSPile Scripting Overview, Scripting Tools, and Getting Started with RSPile Python Scripting: API functions, local server/application architecture, environments, and version prerequisites.
- PileCalc's API overview, lateral endpoint reference, Excel guide, and validation record: current product interface, security, plan, schema, provenance, and verification boundaries.
If a remote REST workflow matches the job, first reproduce one already reviewed model in the free lateral pile calculator. Then use the Pro or Business API to automate that explicit request and its checks—without treating a successful HTTP response as design approval.
Common questions
Does LPILE support batch analysis?
Yes. Ensoft's current description sheet explicitly states that LPILE can perform batch analyses of multiple input-data files. It also documents automated pile-length, pushover, and buckling studies. Those are desktop program capabilities, not evidence of an external REST or Python API.
Does LPILE have an API?
The current official product page, description sheet, and user-manual materials reviewed on July 24, 2026 document multi-file batching and output export, but did not document a general external programming API. Confirm directly with Ensoft if a purchasing or integration decision depends on that capability.
Does RSPile have a Python API?
Yes. Rocscience documents a Python library that can open and modify models, compute them, and extract results. It connects through a local scripting server to the installed RSPile application, so it is a desktop-connected API rather than a remote hosted analysis service.
Does PileCalc use the same engine for REST and Excel?
Yes. Both routes use the same registered analysis runner and request schema. Excel calls a GET variant because it cannot set authorization headers; scripts should normally call the JSON POST endpoint with a bearer key kept in an environment secret.
Keep reading
Can You Run Lateral Pile Analysis in Excel? A Safe p-y Workflow
Use Excel as a controlled front end for lateral pile analysis: cell inputs, results from a p-y API, plus security, limits, provenance, and review checks.
ReadCOM624P in 2026: running the free FHWA pile program today
What COM624P is, why the free FHWA p-y program is hard to run in 2026, and the modern implementations of the same method — LPILE, RSPile, and PileCalc.
ReadWhat is a p-y curve?
What a p-y curve is, where the classic curves come from, the main model families for clay, sand, and rock, and how p-y solvers actually use them.
ReadSee it for yourself
Run a laterally loaded pile in your browser — with the deflected shape, moment diagram, and every input explained.
Launch the app