Linear Cut Planner — 1D Stock, Kerf & Offcuts avatar

Linear Cut Planner — 1D Stock, Kerf & Offcuts

Pricing

from $100.00 / 1,000 complete feasible cutting plans

Go to Apify Store
Linear Cut Planner — 1D Stock, Kerf & Offcuts

Linear Cut Planner — 1D Stock, Kerf & Offcuts

Allocate 1D bars, tubes and strips in API workflows. Verified cutting layouts, part codes, finite stock, kerf, offcuts, CSV and grouped print output. USD 0.10 per completed plan; optimality reported when proven.

Pricing

from $100.00 / 1,000 complete feasible cutting plans

Rating

0.0

(0)

Developer

Ars Technis

Ars Technis

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

A complete 1D cutting plan from parts and stock

Turn a numerical bill of materials into a bar, tube or strip layout for an API or automation workflow. Supply one material and cross-section, required lengths and available stock. Receive every part’s original source row, cut coordinates, inventory balance, two CSVs and a printable HTML diagram.

Up to 500 individual parts, 100 part rows and 20 stock rows per run. The default objective minimizes total raw stock length, then bar count. Optional supplied amounts select amount, then raw length, then bars. A complete feasible plan can be delivered without proving it is the best plan.

USD 0.10 per complete feasible plan + USD 0.00005 per Actor start. No dataset-item, cost-mode or optimum-proof surcharge. A feasible plan can be billable without an optimum proof. Invalid input or no complete layout requests no completed-plan event; a start fee may still apply. Another run can charge again.

Start with one numerical job

Two 40 mm parts from 100 mm stock, with a 1 mm kerf and 2 mm reserved at each end:

{
"partsCsv": "length,quantity\n40,2\n",
"stockCsv": "length,quantity\n100,unlimited\n",
"unit": "mm",
"kerf": 1,
"trimStart": 2,
"trimEnd": 2,
"minReusableOffcut": 10
}

One bar fits both parts. Finished intervals are [2,42) and [43,83), followed by 1 mm kerf each. Residual [84,98) is 14 mm. The complete balance is 100 = 80 finished + 2 kerf + 4 end loss + 14 residual. This is a synthetic numerical example, not a machine setup or a measured stock record.

Original numerical illustration: 100 mm stock divided into 2 mm start allowance, 40 mm part, 1 mm kerf, 40 mm part, 1 mm kerf, 14 mm residual and 2 mm end allowance.

Open the full-size illustration. The 14 mm residual meets this input's 10 mm length threshold; that does not establish physical material suitability. End allowances already include any trim-cut kerf. The image is an original procedural 3D explanation with OpenAI Codex assistance, not a photograph, measured result or optimum proof.

Use the Actor form or API with your checked input. After the run, keep the exact original input with REPORT, CUTS, STOCK, LAYOUT and STATUS. For a visual first run, the free offline companion walks through every interval and supplies complete checked sample files. Local preparation, examples and checking start no Actor run.

Prepare the input

Both CSVs use length,quantity. Optional parts header: length,quantity,partCode. Each part code must be unique: 1–4 uppercase letters, a hyphen and 1–6 digits, such as RAIL-01. Use numerical workshop codes; do not enter names, customer references or personal data. Each CSV is at most 64 KiB. Blank data lines create no stock row.

FieldMeaning
Parts1–500 of each row; at most 500 pieces and 100 rows total
Stock0–10000 of each row, or exact unlimited; duplicate lengths retain separate rows
DimensionsOne common mm or in; decimal dot, up to three fractional digits, maximum 1000000 units; no conversion
kerfJSON number: material lost after each separation
trimStart, trimEndJSON numbers: total reserved end losses, already including trim-cut kerf
minReusableOffcutJSON number: positive residual classification by length alone

Omitted API allowances default to zero; form samples can prefill other values. Inspect them. Every stock row, even zero inventory, needs positive usable length. Final kerf is waived only at the exact trimmed end; a positive sliver smaller than one full kerf is conservatively refused. A cut’s end is the finished edge measured from the original stock end, not a saw centreline.

For cost mode add objective: "acquisitionCost" and stockUnitCosts, one decimal string per original nonblank stock row, including zero inventory. For example, two 4 mm parts with rows 8 mm / amount "10" and 10 mm / amount "3", zero allowances, choose the longer bar in cost mode. Raw mode prefers 8 mm. Amounts are 0–1000000 with up to four fractional digits: no sign, exponent, whitespace or currency symbol. One common cost unit; no currency conversion, labour, tax, residual value, purchase or realized saving is assessed.

Raw schema 1.1/component 1.1.7 and cost schema 2.0/component 2.1.1 are separate contracts. Existing raw integrations must explicitly support cost before opting in. Strict cost consumers must accept component 2.1.1 before starting a cost run against this default; use the compatible companion 2.10.0. Do not relabel saved reports. Actor build number and companion version are separate from report schema and component version.

For an unresolved finite-stock cost job, a bounded fallback can select an exact subset of available stock and leave spare rows unused. It rechecks every part, original stock row and allowance before retaining a complete seed. Jobs needing within-bar slack, pattern/time/scope cutoffs and optional failures can remain unresolved. No partial assignment or source proof flag establishes a plan.

Read a plan and its proof

Read REPORT.status first. complete contains every requested piece and code. A no_plan result may mean a proved shortage or an unresolved bounded search; read its stated basis. It is not a successful empty allocation.

Geometry verified is not an optimum proof. Cost costOptimalityProven covers amount alone; optimalityProven covers the full amount/raw/bar objective. A full objective proof does not establish a unique layout. Uniform methods, integer bounds and bounded mixed searches prove some jobs; cutoffs leave unresolved claims. A checked complete seed is preserved when available. No universal optimum or infeasibility guarantee is made.

CUTS retains each part’s source, sequence, code, length, start/end and kerf. STOCK contains used bars and residuals; cost mode adds whole-bar unit_cost. Cost totals/subtotals are decimal strings. No-plan allocations, used counts and subtotals are null. LAYOUT prints complete numerical tables. STATUS separately records input, storage and billing outcomes. Storage/billing uncertainty never justifies an automatic new paid run.

Free offline companion

Download the free offline companion 2.10.0

Extract the complete ZIP and open Start.html. Begin with the first-plan walkthrough: choose raw length or supplied amount, inspect the whole bar, then download the exact original input and four complete outputs. Both sample objectives have independent numerical checks. They are synthetic local examples, not platform runs or billing records.

The retained goals prepare input, check a plan, compare models, reprice a fixed layout, prepare another raw input and trace 1–4 repeated raw jobs. A new history workspace explicitly combines known groups from older parked raw jobs, then appends a complete fresh report. Save original history for full replay; four jobs total. Equal lengths merge into finite rows; abstract original supply stays separate. CSV tables retain final origins, retired material, remaining groups and the full planned interval trail. Intermediate residuals are not extra final stock. No layout, price or proof is inherited. Raw routes and the complete cost-layout reader run in-browser. Cost certificate/uniform replay and sequence CLI routes use Python 3.11+ standard library. No installation, account, token or network for local file checks. The full input/output/proof/sequence reference and worked guides are included.

Source flags stay separate from independent proofs. Same-job comparisons share one original model; different catalogues use separately checked originals with identical demand and allowances. Prices and old proofs do not transfer. Repeated-job origins and orientation are numerical proposals. Parked older groups cannot be silently merged; unlimited rows remain supply assumptions. Source changes invalidate local results. Saved static records do not revalidate themselves. No physical stock execution, reservation or inventory write is made.

Read a saved cost plan in the browser

Open cost/Cost-Plan-Reader.html with the exact original cost-mode input and complete REPORT; optional original CUTS/STOCK CSVs must match. The local worker reconstructs every part, coordinate, original stock row and supplied amount. Source optimum flags, certificates and lower-bound claims stay separate. The worked guide starts with 35 parts and finite spare stock, then a zero-amount case where the raw-length tie remains unassessed.

Change only row amounts to make a candidate input for that same layout. The reader checks the originals again and computes fresh zero-amount or finite capacity-core proofs. Unassessed does not mean a worse layout. Source proofs never transfer to changed amounts. Save a static record, JSON, row amounts or the checked candidate input; source edits invalidate results. No Actor starts. Browser certificate coverage differs from the Python route, which can replay source cover/pattern and uniform arguments. The browser accepts complete cost schema 2.0/components 2.0.0, 2.1.0 and 2.1.1, up to the stated job limits. Some managed devices block local HTML/Web Workers; the Python route remains.

Deliberate API use

The included cost/cut_plan_client.py starts one potentially paid job only when explicitly invoked. Use your own APIFY_TOKEN securely in your environment. From the extracted cost folder:

python cut_plan_client.py start input.json my-job \
--actor ars-technis~linear-cut-planner
python cut_plan_client.py fetch my-job

Use a new job folder. The client writes durable intent before one POST, uses a USD 0.11 maximum run budget (a ceiling, not the plan price), 512 MiB and 120 seconds, and never automatically retries a start. Fetch reads the recorded run. Reconcile an uncertain start before starting again. A ready marker says expected files were saved consistently, not independently proved optimality or verified billing. No local file workflow invokes this client.

Use from an MCP client

Connect your own MCP client to Apify's hosted server:

https://mcp.apify.com?tools=fetch-actor-details,call-actor

Authorize through your client's Apify sign-in, or its supported bearer-token configuration. Keep your token out of job inputs, source files and messages. Apify's linked configurator provides client-specific setup.

  1. Use fetch-actor-details for ars-technis/linear-cut-planner; read the current price and input schema.
  2. Give call-actor that exact Actor and your numerical input. Put memory: 512, timeout: 120, maxTotalChargeUsd: 0.11 in callOptions, outside the Actor input; set waitSecs: 30 on the call. Deliberately confirm one potentially billed start. The cap is a ceiling, not the plan price.
  3. Save the returned run and storage IDs. Read that existing run with get-actor-run, then its own STATUS, REPORT, CUTS, STOCK, LAYOUT using get-key-value-store-record. These reading tools load with call-actor.

The call returns run metadata; retrieve the outputs separately. Keep the exact original input. Check completion, billing and proof independently. An active run or missing response needs reconciliation of that run; another start can charge again. This uses the same planner and posted Actor pricing. Normal Apify access/storage terms apply. The local companion starts no Actor job.

One material/profile, straight square cuts. No defects, tolerances, clamping, mitres, structural checks, machine code or physical suitability assessment. Review actual dimensions and machine allowances separately. Original AI-assisted software/text/diagrams and synthetic examples; classical packing, duality and interval methods, included MIT and dependency/font credits. No competitor assets, personal data, tracking or hosted inference are used.