civil-qto-mcp
v0.6.2Deterministic Model Context Protocol (MCP) server for Civil Engineering, Roadworks, Paving & Utilities Quantity Take-Off (DXF) and Bill of Quantities…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
inspect_civil_dxf
[STEP 1 of HITL Workflow] Inspect a civil engineering DXF drawing before any measurement. Returns: - Modelspace vs. Paperspace entity counts and 3D bounding box - 3-factor CRS & Drawing Unit estimation (auto-detects Hungarian EOV HD72 metric coordinates, checks $INSUNITS header mismatches, and analyzes median text heights) - Per-layer entity type breakdown, closed/open/nearly-closed polyline counts, HATCH counts, distinct INSERT block names, block ATTRIB tag names, and cleaned sample texts - CAD Hygiene Warnings (Civil 3D proxy objects, external XREFs, 3D…
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute or relative path to the .dxf drawing file. |
ignore_empty_layers | boolean | If True (default), omits layers that contain 0 Modelspace entities. |
layer_filter_regex | Optional case-insensitive regular expression to filter layer names (useful on drawings with 200+ layers). | |
max_sample_texts | integer | Maximum number of sample cleaned TEXT/MTEXT/ATTRIB strings to return per layer. |
measure_linear_and_area_features
[STEP 3A of HITL Workflow] Deterministically measure linear lengths (m) and net surface areas (m2). Engineering guarantees: - Enforces 2D horizontal projection (Z=0) so 3D 'Flying Z' vertices never distort lengths - Analytical circular arc (`bulge`) length calculation + sagitta-bounded spline/ellipse discretization - 1D topological deduplication of exact and partially overlapping lines - 2D Shapely boolean `.difference()` for island subtraction (guaranteed immunity against double-deduction even when HATCH entities already contain internal hole loops)
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the .dxf drawing file. |
auto_close_gap_tolerance_m | number | Maximum start-to-end gap (in meters) to automatically close 'almost closed' polylines on area layers. |
boundary_layers | Layer names containing outer closed boundaries or HATCHes for surface/pavement area measurement in square meters (m2). | |
deduplicate_linear_overlaps | boolean | If True (default), uses 1D Shapely topological union to deduct exact and partial overlapping segments. |
explode_inserts | boolean | If True, virtually explodes INSERT block references on target layers. |
include_hatches | boolean | Whether to extract area polygons from HATCH entities on boundary/island layers. |
island_hole_layers | Layer names containing internal islands/cutouts (e.g., green islands, tree pits) to subtract from `boundary_layers`. | |
linear_layers | Layer names to measure for linear features (curbs, edges, utility lines, fences) in meters (m). | |
min_island_deduction_m2 | number | VOB/C (DIN 18318) threshold: islands smaller than this area (m2) are NOT deducted from pavement area (0.0 = deduct all). |
snap_tolerance_m | number | Snap tolerance in meters for colinear overlap deduplication and exploded line polygonization. |
unit_scale_to_meter | number | Confirmed multiplier converting 1.0 CAD unit to meters (e.g., 1.0 for m, 0.01 for cm, 0.001 for mm). |
extract_utility_network_and_levels
[STEP 3B of HITL Workflow] Extract utility manholes/gullies, levels, pipe segments, and DIN 4124 / EN 1610 trench earthworks. Priority order for manhole data extraction: 1. `INSERT` block attributes (`insert.attribs` / `ATTRIB` tags for ID, Cover/Rim level, Invert level, DN) 2. Leader-aware spatial matching (`LEADER` / pointer line arrow tips pointing to manholes) 3. `STRtree` spatial proximity matching within `search_radius_m` (supporting HU, DE, and EN callout syntax)
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the .dxf drawing file. |
bedding_thickness_m | number | Bedding layer thickness below pipe barrel in meters (default 0.10m per EN 1610). |
calculate_trench_earthworks | boolean | Whether to calculate DIN 4124 / MSZ EN 1610 trench earthwork and bedding volumes. |
cover_thickness_deduction_m | number | Cast-iron cover/frame thickness (m) deducted from total depth h1 to get net shaft height h2 (default 0.17m for D400). |
default_pipe_dn_mm | integer | Default nominal pipe diameter DN (mm) when no text callout specifies DN. |
fallback_trench_depth_m | Optional fallback invert depth (m) to use for trench earthworks when pipe endpoint manholes lack level annotations. | |
node_layers | Layers containing manholes, gullies, or chambers (INSERT blocks, CIRCLEs, small closed box polylines). | |
pipe_layers | Layers containing utility pipe/conduit centerlines. | |
search_radius_m | number | Maximum spatial proximity radius (m) to associate callout texts with manholes or pipes. |
side_cover_above_crown_m | number | Pipe-zone protective cover above pipe crown in meters (default 0.30m per EN 1610). |
text_layers | Layers containing callout texts (TEXT, MTEXT) and leader lines (LEADER, LINE). If None, scans all layers. | |
trench_wall_angle_deg | number | Trench wall angle in degrees per DIN 4124 (90.0 = vertical shored trench, 60.0 or 45.0 = sloped trench). |
unit_scale_to_meter | number | Confirmed multiplier converting 1.0 CAD unit to meters (1.0 for m, 0.01 for cm, 0.001 for mm). |
inspect_and_audit_boq_xlsx
[STEP 3C of HITL Workflow] Safely parse and mathematically audit an Excel (.xlsx / .xlsm) Bill of Quantities. Safety & Auditing Features: - Strictly skips `hidden` and `veryHidden` worksheets (listing them in `skipped_hidden_sheets`) - Strictly skips hidden rows (`row_dimensions[r].hidden`) - Automatically detects Single-Price and Hungarian TERC Split (Material + Labor) column layouts - Audits 100% of rows on selected visible sheets for `MATH_MISMATCH`, `HARDCODED_TOTAL`, `SUM_RANGE_GAP`, `SHARED_FORMULA_RISK`, `ZERO_QUANTITY`, and `ZERO_UNIT_PRICE` (even…
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the .xlsx or .xlsm Bill of Quantities workbook. |
keyword_filter | Optional case-insensitive regex/keyword filter on item description, item number, or code to reduce returned rows. | |
limit | integer | Maximum number of BoQ line items to return in `items` (protects LLM context window on 1000+ row BoQs). |
offset | integer | Pagination offset for returned BoQ line items. |
sheet_names | Optional list of specific visible worksheet names to inspect. |
compare_qto_with_boq
[STEP 3D of HITL Workflow] Deterministically cross-check CAD QTO measurements against Excel BoQ items. Automatically normalizes construction unit synonyms and scale factors: - Length: `m` == `fm` == `lm` == `folyóméter`, `km` == `1000 m`, `cm` == `0.01 m`, `mm` == `0.001 m` - Area: `m2` == `m²` == `nm` == `sqm`, `ha` == `10,000 m2` - Volume: `m3` == `m³` == `lm3` == `bm3` == `tm3` == `cum` - Count: `pcs` == `db` == `darab` == `akna` == `klt` == `készlet` == `nr` == `ea`
| Parameter | Type | Description |
|---|---|---|
file_path_xlsx * | string | Path to the .xlsx or .xlsm Bill of Quantities file. |
qto_records * | array | List of deterministic CAD QTO measurements (with qto_id, measured_quantity, measured_unit, and target item_number/row/keyword). |
critical_percent | number | Percentage threshold above which a difference is classified as CRITICAL_DISCREPANCY (default 10.0%). |
sheet_names | Optional list of visible worksheet names to search within the BoQ. | |
tolerance_percent | number | Percentage threshold within which a difference is classified as WITHIN_TOLERANCE (default 2.0%). |
convert_dwg_to_dxf
[v0.2 Tool 6] Convert a single .dwg file or an entire folder of .dwg files into .dxf format. Note: `inspect_civil_dxf`, `measure_linear_and_area_features`, and `extract_utility_network_and_levels` also accept `.dwg` paths directly via transparent background caching.
| Parameter | Type | Description |
|---|---|---|
source_path * | string | Path to a .dwg file or a directory containing .dwg files. |
output_dir | Optional output directory for converted .dxf files. If None, writes side-by-side with source .dwg. | |
target_dxf_version | string | Target AutoCAD DXF version (default 'R2018'). |
use_cache | boolean | If True (default), reuses SHA-256 cached conversions. |
optimize_precast_manhole_elements
[v0.2 Tool 7] Decompose manholes and road gullies into optimal precast concrete elements (base AFE, cone ASZ or shallow flat slab AFT, shaft rings AGY 100/75/50/25 cm, adjustment rings SZB 60/10, 60/8, 60/6 cm, and D400 covers/grates) and generate a consolidated manufacturer RFQ Bill of Materials (BOM).
| Parameter | Type | Description |
|---|---|---|
catalog_profile | string | Precast element catalog: 'DIN_EN_1917_STD' (European EN 1917 / DIN 4034), 'ASTM_C478_US' (North American ASTM C478), or 'SZEBETON_T2_HU' (Hungarian SzeBeton T2). |
cover_frame_height_cm | number | Cast-iron cover frame height in cm deducted from total depth h1 (default 17.0 cm: h2 = h1 - 17 cm). |
default_surface_type | string | Default surface finish for CAD-extracted manholes (PAVING_BLOCK selects 600x600mm D400 HYDROTEC square-frame cover). |
file_path_cad | Optional path to a .dxf or .dwg file to automatically extract manholes and levels before optimizing precast rings. | |
manholes | Explicit list of manhole/gully specifications (node_id, cover_level_m, invert_level_m or total_depth_h1_m, nominal_diameter_mm, surface_type). | |
node_layers | When file_path_cad is used, layers containing manholes/gullies. | |
spare_adjustment_ring_per_manhole | boolean | If True (default), adds +1 pc of SZB 60/10 adjustment ring per circular manhole to the order BOM. |
text_layers | When file_path_cad is used, layers containing level callout texts. | |
unit_scale_to_meter | number | When file_path_cad is used, CAD unit scale to meters (default 1.0). |
calculate_pavement_layer_quantities
[v0.2 Tool 8] Calculate structural layer quantities (m2, m3, metric tons) for road and paving works, accounting for lateral step-out widening beyond curb lines, compaction multipliers (e.g., CKT-4 x1.20), and cutting/overlap waste.
| Parameter | Type | Description |
|---|---|---|
net_surface_area_m2 * | number | Net surface area of the top pavement course in m2. |
active_edge_perimeter_m | number | Outer boundary perimeter (m) along which base courses widen laterally (step-out). |
custom_layers | Optional custom list of structural layers from top to bottom (overrides `preset_name`). | |
preset_name | Standard pavement structure preset (used when `custom_layers` is not provided). |
convert_vector_pdf_to_dxf
[v0.3 Tool 9] Convert a vector PDF civil engineering plan into a layered DXF drawing via AutoCAD Core Console (`_-PDFIMPORT`) and automatically calibrate `recommended_scale_factor_to_meters` from reference dimensions, explicit scale denominator, or title-block scale text ('M=1:250').
| Parameter | Type | Description |
|---|---|---|
pdf_path * | string | Absolute path to the vector PDF plan (or already imported DXF) to convert and calibrate. |
output_dxf_path | Optional output DXF path. Defaults to system temp cache. | |
page_number | integer | 1-based PDF page number to import. |
paper_scale_denominator | Optional explicit paper scale denominator (e.g., 250 for 1:250, 500 for 1:500). | |
pdf_import_base_unit | string | Base unit produced by PDF import (AutoCAD _-PDFIMPORT defaults to 'inch' = 0.0254m). |
reference_cad_length | Optional measured CAD length of a known dimension line for exact calibration. | |
reference_real_meters | Optional real-world length in meters corresponding to `reference_cad_length`. |
extract_longitudinal_profile_data
[v0.3 Tool 10] Analyze a utility longitudinal profile (hossz-szelvény) to compute trench excavation, machine vs. hand excavation split at utility crossings, two-sided shoring area, and shallow-cover (<1.00 m) C12/15 concrete encasement volumes.
| Parameter | Type | Description |
|---|---|---|
bedding_thickness_m | number | Bedding thickness below pipe invert in meters (default 0.15m). |
concrete_encase_thickness_m | number | Concrete encasement wall thickness around pipe in meters (default 0.15m). |
crossings | List of utility crossings along the profile requiring hand excavation. | |
dxf_path | Optional path to a longitudinal profile DXF to auto-extract station bands. | |
min_cover_threshold_m | number | Minimum crown cover threshold in meters below which C12/15 concrete encasement is required (default 1.00m). |
nominal_diameter_dn_mm | integer | Nominal pipe diameter DN in mm (e.g., 160, 200, 300). |
profile_name | string | Identifier or title of the longitudinal profile (hossz-szelvény). |
shoring_depth_threshold_m | number | Trench depth threshold in meters above which two-sided shoring is calculated (default 1.25m). |
side_cover_above_crown_m | number | Pipe-zone sand cover above pipe crown in meters (default 0.30m). |
stations | Ordered list of profile station points (chainage, ground level, invert level). | |
trench_width_override_m | Optional explicit trench width in meters (overrides DIN 4124 / EN 1610 auto-width). |
apply_boq_modifications_and_pricing
[v0.3 Tool 11] Safely write unit prices (with optional markup_factor), red-bold quantity modifications, supplemental K-tételek, and '-'/'+' kiv. észrevétel pairs into an Excel BoQ workbook while updating SUM ranges, XML `<v>` cached values, and stripping `xl/calcChain.xml`.
| Parameter | Type | Description |
|---|---|---|
output_xlsx_path * | string | Absolute path where the modified and priced BoQ Excel file will be written. |
source_xlsx_path * | string | Absolute path to the source BoQ Excel file (.xlsx). |
markup_factor | number | Global multiplier applied to unit prices (e.g., 1.0 for base, 1.20 for +20% markup). |
round_step | number | Rounding step for unit prices after markup (default 0.01 for EUR/USD/GBP; pass 10.0 for HUF). |
row_pricings | List of unit prices and optional quantity/note modifications for existing rows. | |
supplemental_items | List of new K-tétel items or '-'/'+' kiv. észrevétel observation pairs to insert. |
export_qto_visual_overlay
[v0.3 Tool 12] Export an interactive HTML and SVG visual verification map showing all measured polygons, deducted islands, linear features, and point nodes labeled with their IDs and m2/m quantities.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute path to the DXF or DWG file. |
boundary_layers | Polygon boundary/hatch layers to render as filled net area surfaces. | |
island_hole_layers | Island/deduction layers to subtract and highlight in dashed red. | |
linear_layers | Linear layers (curbs, pipes, edges) to render and label with length (m). | |
locale | string | UI language for the generated HTML and SVG report ('en', 'de', or 'hu'). |
output_dir | Optional directory for the generated .html and .svg files. | |
point_layers | Point/circle/insert layers (manholes, bollards) to render as markers. | |
unit_scale_to_meter | number | Multiplier converting CAD drawing units to meters. |
audit_technological_completeness
[v0.4 Tool 13] Audit a BoQ workbook against 6 civil engineering technological completeness chains (asphalt, block paving, gravity sewers, pressure water lines, RC foundations, industrial slabs) plus client profiles (`LIDL_BBS`), generating ready-to-insert `BoQSupplementalItemInput` (K-tétel) payloads and numbered Technical Clarification Questions (`technical_clarification_questions`).
| Parameter | Type | Description |
|---|---|---|
boq_xlsx_path * | string | Absolute path to the BoQ Excel workbook (.xlsx / .xlsm) to audit. |
cad_asphalt_tie_in_length_m | Optional CAD-measured asphalt tie-in length (m) for saw-cutting and joint sealing. | |
cad_curb_length_m | Optional CAD-measured curb length (m) to populate if curbs are missing from BoQ. | |
cad_shallow_pipe_concrete_m3 | Optional C12/15 concrete encasement volume (m3) for shallow pipes (<1.0m cover). | |
locale | string | Language for generated supplemental item descriptions ('en', 'de', or 'hu'). |
project_profile | string | Client/project specification profile ('STANDARD', 'LIDL_BBS' for Lidl Building Book Specification rules, or 'GENERAL_CONTRACTOR_TENDER'). |
sheet_names | Optional list of visible worksheet names to check. |
calculate_foundation_and_slab_qto
[v0.4 Tool 14] Calculate the full structural and earthwork quantity chain for foundations, plinths, and industrial floor slabs: structural concrete (m3), blinding concrete with lateral overhang (m3), lateral formwork (m2), rebar/fiber tonnage (t), DIN 4124 prismoidal excavation (m3), plinth XPS (m2), and saw-cut contraction joints (m).
| Parameter | Type | Description |
|---|---|---|
batter_angle_deg | number | Pit excavation side slope angle in degrees (default 60.0 deg; 90.0 for vertical). |
blinding_overhang_m | number | Lateral overhang of blinding concrete on each side in meters (default 0.10m). |
blinding_thickness_m | number | Blinding concrete thickness in meters (default 0.10m). |
default_cad_element_type | string | Element type assigned to CAD-extracted footprints. |
default_cad_height_m | number | Structural height/thickness in meters for CAD-extracted footprints. |
elements | List of structural foundation or slab elements ('PAD_FOOTING', 'CUP_FOOTING', 'STRIP_FOUNDATION', 'PLINTH_WALL', 'RAFT_SLAB', 'INDUSTRIAL_FLOOR'). | |
file_path_cad | Optional DXF/DWG path to extract foundation footprint polygons directly. | |
foundation_layers | When `file_path_cad` is provided, CAD layers containing foundation footprints. | |
unit_scale_to_meter | number | CAD drawing unit scale to meters (default 1.0). |
working_space_m | number | Bottom pit working space around foundations in meters (default 0.50m per DIN 4124). |
match_prices_and_generate_rfq
[v0.4 Tool 15] Match BoQ items against regional unit-price databases (Tier 1 own regional DB, Tier 2 supplier catalogs, Tier 3 built-in benchmarks), flag transport-sensitive items, produce ready-to-apply `BoQRowPricingInput` payloads, and group materials into 6 supplier RFQ packages.
| Parameter | Type | Description |
|---|---|---|
boq_xlsx_path * | string | Absolute path to the BoQ Excel workbook (.xlsx / .xlsm). |
database_dir | Optional directory containing `sajat_egysegar_torzs.json` and `partner_es_alvallalkozo_torzs.json`. | |
markup_factor | number | Global multiplier applied to matched unit prices (e.g., 1.0 for base, 1.20 for +20% markup). |
project_location | string | Project city/settlement for regional price routing (e.g., 'Foktő', 'Kecskemét', 'Vecsés', 'Tótkomlós'). |
round_step | number | Rounding step for unit prices (0.01 default for EUR/USD; pass 10.0 for HUF). |
sheet_names | Optional list of visible worksheet names to price. |
calculate_tin_earthwork_volumes
[v0.5/v0.6.2 Tool 16] Compute 3D Delaunay TIN surface earthwork volumes (topsoil stripping, cut, fill, and net earth balance) between existing terrain and designed subgrade level directly from CAD spot-elevation layers, Civil 3D LandXML (`.xml`) 3D surfaces, or 3D point clouds.
| Parameter | Type | Description |
|---|---|---|
boundary_layers | CAD layers defining the earthwork/grading boundary polygon. | |
constant_design_elevation_m | Optional constant horizontal design elevation [mBf] if `design_points` is not provided. | |
design_elevation_layers | CAD layers containing designed surface elevation POINT/INSERT/TEXT entities. | |
design_points | List of designed surface or subgrade spot elevation points (X, Y, Z in meters). | |
design_surface_name | Optional `<Surface name='...'>` selector inside the LandXML file for Designed Surface. | |
existing_elevation_layers | CAD layers containing existing ground elevation POINT/INSERT/TEXT entities. | |
existing_points | List of existing ground spot elevation points (X, Y, Z in meters). | |
existing_surface_name | Optional `<Surface name='...'>` selector inside the LandXML file for Existing Ground. | |
file_path_cad | Optional DXF/DWG path to extract spot elevation points and boundary polygons. | |
fill_compaction_factor | number | Compaction multiplier for required borrow fill (default 1.15). |
landxml_design_path | Optional separate LandXML (.xml) file containing the Designed `<Surface>`. | |
landxml_existing_path | Optional path to a LandXML (.xml) file exported from Civil 3D / OpenRoads containing the Existing Ground `<Surface>` (or both Existing and Design surfaces). | |
pavement_structure_thickness_m | number | Total pavement structure thickness (m) deducted from finished design surface to reach the subgrade mirror level (tükörszint). Pass 0.0 if design_points are already subgrade levels. |
topsoil_strip_thickness_m | number | Topsoil stripping thickness in meters (e.g., 0.10m or 0.20m). |
unit_scale_to_meter | number | CAD drawing unit scale to meters (default 1.0). |
compare_drawing_and_boq_revisions
[v0.5 Tool 17] Compare Old vs. New (or Design vs. As-Built) CAD drawings and/or BoQ Excel workbooks, calculating spatial area additions/removals (`New - Old` and `Old - New`), linear/point deltas, row-level BoQ diffs, and ready-to-apply variation order (`kiv. észrevétel` / `K-tétel`) payloads.
| Parameter | Type | Description |
|---|---|---|
boundary_layers | Polygon area layers to compare between Old and New CAD drawings. | |
linear_layers | Linear layers to compare between Old and New CAD drawings. | |
locale | string | Language for generated variation order notes ('en', 'de', or 'hu'). |
new_boq_xlsx_path | Optional path to the New / Revised BoQ Excel workbook (.xlsx). | |
new_cad_path | Optional path to the New / Revised (R1) or As-Built (Megvalósulási) DXF or DWG drawing. | |
old_boq_xlsx_path | Optional path to the Old / Baseline BoQ Excel workbook (.xlsx). | |
old_cad_path | Optional path to the Old / Design (R0) DXF or DWG drawing. | |
point_layers | Point/circle/insert layers to compare between Old and New CAD drawings. | |
sheet_names | Optional list of visible BoQ worksheet names to compare. | |
unit_scale_to_meter | number | CAD drawing unit scale to meters (default 1.0). |
calculate_trench_earthwork_and_bedding
[v0.6 Tool 18] Calculate complete MSZ EN 1610 / DIN 4124 utility trench and manhole-pit earthworks: depth-banded excavation (`0-1.5m`, `1.5-3.0m`, `>3.0m`), machine vs. hand excavation split, lower bedding (`m3`), pipe-zone protective cover (`m3`), exact pipe & manhole volume displacement (`m3`), native soil backfill (`m3`), excess displaced spoil haul-off (`m3`), two-sided trench shoring (`m2`), warning tape (`m`), and geotextile trench wrapping (`m2`).
compare_supplier_quotes_and_build_bid_tab
[v0.6 Tool 19] Compare multiple supplier quotes (.xlsx, .pdf, or structured lines) on an apples-to-apples True Landed Cost basis (distributing truckload freight, crane unloading, and pallet/packaging fees into per-unit landed prices), scan for commercial fine-print traps, generate a color-coded Excel Bid Tabulation (`Ártükör.xlsx`), and output ready-to-apply `BoQRowPricingInput` payloads.
| Parameter | Type | Description |
|---|---|---|
supplier_quotes * | array | List of supplier quote submissions (`supplier_name`, `lines` or `quote_file_path`, `global_discount_percent`, `freight_mode`, `freight_rate`, `unloading_fee_per_pallet`, `non_refundable_pallet_fee_per… |
target_items * | array | List of required procurement items (`item_id`, `description`, `unit`, `required_quantity`, and optional `unit_weight_kg`, `units_per_pallet`, `boq_sheet_name`, `boq_row_number`). |
award_strategy | string | Whether `recommended_boq_pricings` should use prices from `BEST_SINGLE_SUPPLIER` (one package order) or `CHERRY_PICK_LOWEST` (lowest landed supplier per item). |
contractor_markup_factor | number | Multiplier applied to winning landed unit prices when generating `recommended_boq_pricings` (default 1.0). |
currency | string | Currency code (e.g., 'HUF', 'EUR', 'USD'). |
output_xlsx_path | Optional path where the formatted Excel Bid Tabulation (`Ártükör.xlsx`) will be saved. | |
package_name | string | Procurement package name displayed on the Bid Tabulation header. |
round_step | number | Rounding step for `recommended_boq_pricings` (default 10.0 for HUF; 0.01 for EUR). |
calculate_cross_section_and_embankment_qto
[v0.6 Tool 20] Calculate road typical cross-section (mintakeresztszelvény) quantities: crushed-stone road shoulders (`m2`, compacted `m3`, order `m3`, and tonnes `t` including outer batter-slope wedge), inclined embankment/cut slope surface area (`m2`), slope topsoil spreading (`m3`), hydroseeding area (`m2`), and trapezoidal roadside drainage/infiltration ditch excavation (`m3`), lining/grassing (`m2`), washed gravel fill (`m3`), and geotextile wrap (`m2`).
| Parameter | Type | Description |
|---|---|---|
alignment_layers | CAD layers containing road centerline or edge lines when `dxf_path` is used. | |
dxf_path | Optional DXF/DWG path to auto-measure road alignment length from `alignment_layers`. | |
segments | List of road typical cross-section segments (`segment_id`, `length_m`, `shoulder_width_left_m`, `shoulder_width_right_m`, `shoulder_thickness_cm`, `embankment_height_left_m`, `embankment_height_right_… | |
shoulder_bulk_density_t_per_m3 | number | Bulk density (t/m3) of crushed stone shoulder material (default 2.05 t/m3). |
shoulder_compaction_factor | number | Compaction multiplier for ordering granular shoulder material (default 1.15). |
unit_scale_to_meter | number | CAD drawing unit scale to meters (default 1.0). |
generate_progress_certificate
[v0.6 Tool 21] Generate a Construction Measurement Sheet (Felmérési Napló) and Monthly Progress Payment Certificate (Teljesítésigazolás / FIDIC IPC) from a contracted BoQ workbook and/or progress entries: computes previous, current, and cumulative quantities/amounts, flags >100% overruns (Pótmunka), applies advance repayment and retention deductions, and exports a 2-sheet Excel workbook with live formulas and FMV/ME signature blocks.
| Parameter | Type | Description |
|---|---|---|
advance_deduction_percent | number | Proportional advance payment repayment percentage deducted from current period work (default 0.0%). |
billing_period | string | Billing period string (e.g., '2026. november'). |
certificate_number | string | Certificate number/title (e.g., '1. Részszámla', '2. sz. Teljesítésigazolás', 'Végszámla'). |
client_name | string | Employer / Client company name. |
contract_boq_xlsx_path | Optional path to the contracted BoQ Excel workbook (.xlsx) to read contracted items and prices. | |
contractor_name | string | Contractor company name. |
currency | string | Currency code (e.g., 'HUF', 'EUR', 'USD'). |
default_completion_percent | Optional default cumulative completion percentage (0 to 100) applied to contracted items not explicitly listed in `progress_entries`. | |
output_xlsx_path | Optional path where the formatted 2-sheet Excel workbook (`1_Teljesítésigazolás` and `2_Felmérési_Napló`) will be saved. | |
progress_entries | List of item progress records (`item_key`, `previous_cumulative_quantity`, `current_period_quantity` or `target_cumulative_percent`, `measurement_proof_formula`). | |
project_name | string | Project title displayed on the Payment Certificate and Measurement Sheet. |
retention_percent | number | Performance guarantee retention percentage deducted from current period work (default 5.0%). |
sheet_names | Optional list of visible BoQ worksheet names to include when `contract_boq_xlsx_path` is provided. | |
vat_percent | number | VAT percentage (default 27.0%; pass 0.0 for domestic reverse-charge / fordított adózás). |