civil-qto-mcp

v0.6.2
civil-qto-mcp Checked 1 day ago Published 9 days ago

Deterministic 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…

ParameterTypeDescription
file_path *stringAbsolute or relative path to the .dxf drawing file.
ignore_empty_layersbooleanIf True (default), omits layers that contain 0 Modelspace entities.
layer_filter_regexOptional case-insensitive regular expression to filter layer names (useful on drawings with 200+ layers).
max_sample_textsintegerMaximum 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)

ParameterTypeDescription
file_path *stringPath to the .dxf drawing file.
auto_close_gap_tolerance_mnumberMaximum start-to-end gap (in meters) to automatically close 'almost closed' polylines on area layers.
boundary_layersLayer names containing outer closed boundaries or HATCHes for surface/pavement area measurement in square meters (m2).
deduplicate_linear_overlapsbooleanIf True (default), uses 1D Shapely topological union to deduct exact and partial overlapping segments.
explode_insertsbooleanIf True, virtually explodes INSERT block references on target layers.
include_hatchesbooleanWhether to extract area polygons from HATCH entities on boundary/island layers.
island_hole_layersLayer names containing internal islands/cutouts (e.g., green islands, tree pits) to subtract from `boundary_layers`.
linear_layersLayer names to measure for linear features (curbs, edges, utility lines, fences) in meters (m).
min_island_deduction_m2numberVOB/C (DIN 18318) threshold: islands smaller than this area (m2) are NOT deducted from pavement area (0.0 = deduct all).
snap_tolerance_mnumberSnap tolerance in meters for colinear overlap deduplication and exploded line polygonization.
unit_scale_to_meternumberConfirmed 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)

ParameterTypeDescription
file_path *stringPath to the .dxf drawing file.
bedding_thickness_mnumberBedding layer thickness below pipe barrel in meters (default 0.10m per EN 1610).
calculate_trench_earthworksbooleanWhether to calculate DIN 4124 / MSZ EN 1610 trench earthwork and bedding volumes.
cover_thickness_deduction_mnumberCast-iron cover/frame thickness (m) deducted from total depth h1 to get net shaft height h2 (default 0.17m for D400).
default_pipe_dn_mmintegerDefault nominal pipe diameter DN (mm) when no text callout specifies DN.
fallback_trench_depth_mOptional fallback invert depth (m) to use for trench earthworks when pipe endpoint manholes lack level annotations.
node_layersLayers containing manholes, gullies, or chambers (INSERT blocks, CIRCLEs, small closed box polylines).
pipe_layersLayers containing utility pipe/conduit centerlines.
search_radius_mnumberMaximum spatial proximity radius (m) to associate callout texts with manholes or pipes.
side_cover_above_crown_mnumberPipe-zone protective cover above pipe crown in meters (default 0.30m per EN 1610).
text_layersLayers containing callout texts (TEXT, MTEXT) and leader lines (LEADER, LINE). If None, scans all layers.
trench_wall_angle_degnumberTrench wall angle in degrees per DIN 4124 (90.0 = vertical shored trench, 60.0 or 45.0 = sloped trench).
unit_scale_to_meternumberConfirmed 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…

ParameterTypeDescription
file_path *stringPath to the .xlsx or .xlsm Bill of Quantities workbook.
keyword_filterOptional case-insensitive regex/keyword filter on item description, item number, or code to reduce returned rows.
limitintegerMaximum number of BoQ line items to return in `items` (protects LLM context window on 1000+ row BoQs).
offsetintegerPagination offset for returned BoQ line items.
sheet_namesOptional 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`

ParameterTypeDescription
file_path_xlsx *stringPath to the .xlsx or .xlsm Bill of Quantities file.
qto_records *arrayList of deterministic CAD QTO measurements (with qto_id, measured_quantity, measured_unit, and target item_number/row/keyword).
critical_percentnumberPercentage threshold above which a difference is classified as CRITICAL_DISCREPANCY (default 10.0%).
sheet_namesOptional list of visible worksheet names to search within the BoQ.
tolerance_percentnumberPercentage 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.

ParameterTypeDescription
source_path *stringPath to a .dwg file or a directory containing .dwg files.
output_dirOptional output directory for converted .dxf files. If None, writes side-by-side with source .dwg.
target_dxf_versionstringTarget AutoCAD DXF version (default 'R2018').
use_cachebooleanIf 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).

ParameterTypeDescription
catalog_profilestringPrecast 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_cmnumberCast-iron cover frame height in cm deducted from total depth h1 (default 17.0 cm: h2 = h1 - 17 cm).
default_surface_typestringDefault surface finish for CAD-extracted manholes (PAVING_BLOCK selects 600x600mm D400 HYDROTEC square-frame cover).
file_path_cadOptional path to a .dxf or .dwg file to automatically extract manholes and levels before optimizing precast rings.
manholesExplicit list of manhole/gully specifications (node_id, cover_level_m, invert_level_m or total_depth_h1_m, nominal_diameter_mm, surface_type).
node_layersWhen file_path_cad is used, layers containing manholes/gullies.
spare_adjustment_ring_per_manholebooleanIf True (default), adds +1 pc of SZB 60/10 adjustment ring per circular manhole to the order BOM.
text_layersWhen file_path_cad is used, layers containing level callout texts.
unit_scale_to_meternumberWhen 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.

ParameterTypeDescription
net_surface_area_m2 *numberNet surface area of the top pavement course in m2.
active_edge_perimeter_mnumberOuter boundary perimeter (m) along which base courses widen laterally (step-out).
custom_layersOptional custom list of structural layers from top to bottom (overrides `preset_name`).
preset_nameStandard 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').

ParameterTypeDescription
pdf_path *stringAbsolute path to the vector PDF plan (or already imported DXF) to convert and calibrate.
output_dxf_pathOptional output DXF path. Defaults to system temp cache.
page_numberinteger1-based PDF page number to import.
paper_scale_denominatorOptional explicit paper scale denominator (e.g., 250 for 1:250, 500 for 1:500).
pdf_import_base_unitstringBase unit produced by PDF import (AutoCAD _-PDFIMPORT defaults to 'inch' = 0.0254m).
reference_cad_lengthOptional measured CAD length of a known dimension line for exact calibration.
reference_real_metersOptional 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.

ParameterTypeDescription
bedding_thickness_mnumberBedding thickness below pipe invert in meters (default 0.15m).
concrete_encase_thickness_mnumberConcrete encasement wall thickness around pipe in meters (default 0.15m).
crossingsList of utility crossings along the profile requiring hand excavation.
dxf_pathOptional path to a longitudinal profile DXF to auto-extract station bands.
min_cover_threshold_mnumberMinimum crown cover threshold in meters below which C12/15 concrete encasement is required (default 1.00m).
nominal_diameter_dn_mmintegerNominal pipe diameter DN in mm (e.g., 160, 200, 300).
profile_namestringIdentifier or title of the longitudinal profile (hossz-szelvény).
shoring_depth_threshold_mnumberTrench depth threshold in meters above which two-sided shoring is calculated (default 1.25m).
side_cover_above_crown_mnumberPipe-zone sand cover above pipe crown in meters (default 0.30m).
stationsOrdered list of profile station points (chainage, ground level, invert level).
trench_width_override_mOptional 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`.

ParameterTypeDescription
output_xlsx_path *stringAbsolute path where the modified and priced BoQ Excel file will be written.
source_xlsx_path *stringAbsolute path to the source BoQ Excel file (.xlsx).
markup_factornumberGlobal multiplier applied to unit prices (e.g., 1.0 for base, 1.20 for +20% markup).
round_stepnumberRounding step for unit prices after markup (default 0.01 for EUR/USD/GBP; pass 10.0 for HUF).
row_pricingsList of unit prices and optional quantity/note modifications for existing rows.
supplemental_itemsList 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.

ParameterTypeDescription
file_path *stringAbsolute path to the DXF or DWG file.
boundary_layersPolygon boundary/hatch layers to render as filled net area surfaces.
island_hole_layersIsland/deduction layers to subtract and highlight in dashed red.
linear_layersLinear layers (curbs, pipes, edges) to render and label with length (m).
localestringUI language for the generated HTML and SVG report ('en', 'de', or 'hu').
output_dirOptional directory for the generated .html and .svg files.
point_layersPoint/circle/insert layers (manholes, bollards) to render as markers.
unit_scale_to_meternumberMultiplier 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`).

ParameterTypeDescription
boq_xlsx_path *stringAbsolute path to the BoQ Excel workbook (.xlsx / .xlsm) to audit.
cad_asphalt_tie_in_length_mOptional CAD-measured asphalt tie-in length (m) for saw-cutting and joint sealing.
cad_curb_length_mOptional CAD-measured curb length (m) to populate if curbs are missing from BoQ.
cad_shallow_pipe_concrete_m3Optional C12/15 concrete encasement volume (m3) for shallow pipes (<1.0m cover).
localestringLanguage for generated supplemental item descriptions ('en', 'de', or 'hu').
project_profilestringClient/project specification profile ('STANDARD', 'LIDL_BBS' for Lidl Building Book Specification rules, or 'GENERAL_CONTRACTOR_TENDER').
sheet_namesOptional 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).

ParameterTypeDescription
batter_angle_degnumberPit excavation side slope angle in degrees (default 60.0 deg; 90.0 for vertical).
blinding_overhang_mnumberLateral overhang of blinding concrete on each side in meters (default 0.10m).
blinding_thickness_mnumberBlinding concrete thickness in meters (default 0.10m).
default_cad_element_typestringElement type assigned to CAD-extracted footprints.
default_cad_height_mnumberStructural height/thickness in meters for CAD-extracted footprints.
elementsList of structural foundation or slab elements ('PAD_FOOTING', 'CUP_FOOTING', 'STRIP_FOUNDATION', 'PLINTH_WALL', 'RAFT_SLAB', 'INDUSTRIAL_FLOOR').
file_path_cadOptional DXF/DWG path to extract foundation footprint polygons directly.
foundation_layersWhen `file_path_cad` is provided, CAD layers containing foundation footprints.
unit_scale_to_meternumberCAD drawing unit scale to meters (default 1.0).
working_space_mnumberBottom 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.

ParameterTypeDescription
boq_xlsx_path *stringAbsolute path to the BoQ Excel workbook (.xlsx / .xlsm).
database_dirOptional directory containing `sajat_egysegar_torzs.json` and `partner_es_alvallalkozo_torzs.json`.
markup_factornumberGlobal multiplier applied to matched unit prices (e.g., 1.0 for base, 1.20 for +20% markup).
project_locationstringProject city/settlement for regional price routing (e.g., 'Foktő', 'Kecskemét', 'Vecsés', 'Tótkomlós').
round_stepnumberRounding step for unit prices (0.01 default for EUR/USD; pass 10.0 for HUF).
sheet_namesOptional 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.

ParameterTypeDescription
boundary_layersCAD layers defining the earthwork/grading boundary polygon.
constant_design_elevation_mOptional constant horizontal design elevation [mBf] if `design_points` is not provided.
design_elevation_layersCAD layers containing designed surface elevation POINT/INSERT/TEXT entities.
design_pointsList of designed surface or subgrade spot elevation points (X, Y, Z in meters).
design_surface_nameOptional `<Surface name='...'>` selector inside the LandXML file for Designed Surface.
existing_elevation_layersCAD layers containing existing ground elevation POINT/INSERT/TEXT entities.
existing_pointsList of existing ground spot elevation points (X, Y, Z in meters).
existing_surface_nameOptional `<Surface name='...'>` selector inside the LandXML file for Existing Ground.
file_path_cadOptional DXF/DWG path to extract spot elevation points and boundary polygons.
fill_compaction_factornumberCompaction multiplier for required borrow fill (default 1.15).
landxml_design_pathOptional separate LandXML (.xml) file containing the Designed `<Surface>`.
landxml_existing_pathOptional 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_mnumberTotal 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_mnumberTopsoil stripping thickness in meters (e.g., 0.10m or 0.20m).
unit_scale_to_meternumberCAD 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.

ParameterTypeDescription
boundary_layersPolygon area layers to compare between Old and New CAD drawings.
linear_layersLinear layers to compare between Old and New CAD drawings.
localestringLanguage for generated variation order notes ('en', 'de', or 'hu').
new_boq_xlsx_pathOptional path to the New / Revised BoQ Excel workbook (.xlsx).
new_cad_pathOptional path to the New / Revised (R1) or As-Built (Megvalósulási) DXF or DWG drawing.
old_boq_xlsx_pathOptional path to the Old / Baseline BoQ Excel workbook (.xlsx).
old_cad_pathOptional path to the Old / Design (R0) DXF or DWG drawing.
point_layersPoint/circle/insert layers to compare between Old and New CAD drawings.
sheet_namesOptional list of visible BoQ worksheet names to compare.
unit_scale_to_meternumberCAD 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.

ParameterTypeDescription
supplier_quotes *arrayList 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 *arrayList 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_strategystringWhether `recommended_boq_pricings` should use prices from `BEST_SINGLE_SUPPLIER` (one package order) or `CHERRY_PICK_LOWEST` (lowest landed supplier per item).
contractor_markup_factornumberMultiplier applied to winning landed unit prices when generating `recommended_boq_pricings` (default 1.0).
currencystringCurrency code (e.g., 'HUF', 'EUR', 'USD').
output_xlsx_pathOptional path where the formatted Excel Bid Tabulation (`Ártükör.xlsx`) will be saved.
package_namestringProcurement package name displayed on the Bid Tabulation header.
round_stepnumberRounding 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`).

ParameterTypeDescription
alignment_layersCAD layers containing road centerline or edge lines when `dxf_path` is used.
dxf_pathOptional DXF/DWG path to auto-measure road alignment length from `alignment_layers`.
segmentsList 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_m3numberBulk density (t/m3) of crushed stone shoulder material (default 2.05 t/m3).
shoulder_compaction_factornumberCompaction multiplier for ordering granular shoulder material (default 1.15).
unit_scale_to_meternumberCAD 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.

ParameterTypeDescription
advance_deduction_percentnumberProportional advance payment repayment percentage deducted from current period work (default 0.0%).
billing_periodstringBilling period string (e.g., '2026. november').
certificate_numberstringCertificate number/title (e.g., '1. Részszámla', '2. sz. Teljesítésigazolás', 'Végszámla').
client_namestringEmployer / Client company name.
contract_boq_xlsx_pathOptional path to the contracted BoQ Excel workbook (.xlsx) to read contracted items and prices.
contractor_namestringContractor company name.
currencystringCurrency code (e.g., 'HUF', 'EUR', 'USD').
default_completion_percentOptional default cumulative completion percentage (0 to 100) applied to contracted items not explicitly listed in `progress_entries`.
output_xlsx_pathOptional path where the formatted 2-sheet Excel workbook (`1_Teljesítésigazolás` and `2_Felmérési_Napló`) will be saved.
progress_entriesList of item progress records (`item_key`, `previous_cumulative_quantity`, `current_period_quantity` or `target_cumulative_percent`, `measurement_proof_formula`).
project_namestringProject title displayed on the Payment Certificate and Measurement Sheet.
retention_percentnumberPerformance guarantee retention percentage deducted from current period work (default 5.0%).
sheet_namesOptional list of visible BoQ worksheet names to include when `contract_boq_xlsx_path` is provided.
vat_percentnumberVAT percentage (default 27.0%; pass 0.0 for domestic reverse-charge / fordított adózás).