2 Nov 202614 min read

Checking bills of materials against drawings and your ERP with an AI agent

How an AI agent checks each BOM line against the drawing and your ERP item master in code, and why units, BOM views and lifecycle statuses matter.

Checking bills of materials against drawings and your ERP with an AI agent

A drawing review agent checks a bill of materials (BOM) in code before any AI model is involved. It matches every BOM line to the drawing and every item on the drawing back to the BOM, compares quantities, and confirms each part number is live in your ERP item master. Each mismatch becomes a finding for your engineer to judge.

The BOM match is one step in how an AI drawing review runs, from drawing to sign-off. It is also one of the checks described in our post on rule checks and AI judgement. It is the most mechanical part of a drawing review, which makes it the most reliable part to automate. This post covers what that automation has to handle. That includes how the drawing links to the list, why two quantities can differ without either being wrong, and how an ERP records a part that should no longer be ordered.

The international standard for parts lists is ISO 7573:2008, which "provides minimum requirements for parts lists to provide necessary information, e.g. for the production, procurement or maintenance of the parts." ISO uses the term parts list. In industry usage, BOM usually means the structured list held in CAD, PLM or ERP software.

The text of ISO 7573 sets out how the two connect:

  • "The association between the part on a parts list and its graphical representation on the drawing is given by an identification reference." This is the basis for matching in both directions.
  • "The parts list may be included on the drawing itself or be a separate document", so a check has to handle both.
  • Identical parts on a drawing share one part reference, so several balloons can resolve to one list line.
  • A part number is the "unique identification of a part for a particular organization". That makes it the key for looking a part up in your own ERP.
  • "The data fields are optional, but at least one identifying element is needed." Column layouts therefore vary from firm to firm.

A part reference, usually drawn as a numbered balloon and often called a find number, is the label that ties a part on the drawing to its line in the parts list. ISO 6433:2012 "gives rules for the presentation of part references in assembly representations". A part reference is a local key. A third-party reproduction of the legacy US defence standard MIL-STD-100G says find numbers "are for cross-referencing purposes only within the drawing and associated lists" and "shall not be used for procurement". The part number is what gets ordered.

What does the BOM check compare?

ComparisonWhat a mismatch looks like
BOM to drawingA BOM line with no matching item on the drawing
Drawing to BOMAn item called up on the drawing that is missing from the BOM
BOM to ERPA part number that is not in the item master, or is marked obsolete or superseded however your ERP records that

Quantities are checked as part of the first two. When the BOM and the drawing disagree on how many of a part are needed, the agent reports both figures and leaves the engineer to decide which is right.

Why is a quantity check more than comparing two numbers?

ISO 7573 defines quantity as "the number of parts or the amount of material necessary for one specific assembly". Where the amount is unknown, the list may show "AR" (as required) or "EST" (estimated), which are not numbers at all.

ERP BOMs add their own conventions. SAP's release 4.70 documentation defines a component quantity as "the quantity of the component required to make the base quantity of the product". It allows a unit to be replaced only by "any unit of measure that has the same dimension" as the base unit. A fixed quantity line is "always the same, regardless of the required quantity", and alternative items are planned by usage probability. Microsoft's documentation for the retired Dynamics AX 2012 shows a quantity set against a batch. "If the quantity is 1, the unit is liter, and per series is 100, one liter of the item is required to produce 100 finished BOM items."

A naive text match would flag each of those as a mismatch, or miss a real one. The line numbers in an ERP BOM are no help as a key either. SAP's BOM item number "is used to sort an item within the BOM", and Dynamics AX positions exist "to sort or arrange the order of items on BOM lines". Neither is the balloon number on the drawing.

How does an ERP record that a part is no longer live?

In Dynamics 365 Supply Chain Management, Microsoft says "You can define any number of product lifecycle states". Each state carries a policy for each business process, including production BOMs and purchase orders. The policy enables the process, blocks it or enables it with a warning, and Microsoft's example is that "you might block end-of-life products from being purchased." If either the product master or the variant is blocked, the process is blocked. A periodic task can also mark products obsolete when there is "no master data that can result in demand", so a batch job can change a part's status without anyone editing the item.

SAP's legacy release documentation describes a material status that "tells you whether a material is subject to restrictions, and what they are". It can be set across all plants or for one plant, and both are considered together. Superseded parts are handled through a follow-up material, and "The follow-up item defined in the bill of material overrides any follow-up material" set in the material master. Oracle Fusion Cloud SCM predefines two item statuses, Active and Inactive, and leaves any others to the customer.

Obsolete and superseded therefore mean whatever your item master says they mean, and the check can only report what the ERP records. This is why reading the item master matters. A part can match the drawing exactly and still be the wrong part to order.

What does a finding look like?

Findings arrive in the same review report as every other check, with a severity and a reference to the BOM line and sheet. Two illustrative examples:

  • Medium: BOM line 11 lists 3 m of hose, and the parts list on sheet 2 calls up 3 off. The units differ, so both figures are reported.
  • High: balloon 6 on sheet 3 calls up a mounting bracket that has no line in the BOM.

Whether an agent raises findings like these on your BOMs, and stays quiet on the ones that are correct, is measured by testing an agent's findings against known drawings.

Why do the BOM and the drawing drift apart?

The same parts are held in several lists, and each can be edited on its own. In CAD software the drawing's parts list is usually generated from the assembly BOM:

  • Autodesk's Inventor 2020 help says BOM changes flow through to the parts list and balloons "except for values that have been specified as Static". It adds that "The item number can be edited as needed in both the assembly BOM and in the parts list."
  • Autodesk's AutoCAD Mechanical 2025 help says parts lists and balloons are created from the BOM, and that renumbering balloons changes the item numbers in the current BOM.
  • Onshape's drawing help says its Balloon tool can pull identifiers from the BOM.

The view exported also changes the lines. Inventor's 2026 help says the Parts Only view "Shows all components in a flat list. Normal Assemblies are not displayed in the Parts Only view." Onshape's Flattened BOM lists instances "as though they were inserted on the top level without the subassembly indicators", according to its BOM help. One assembly exported two ways gives two different sets of lines.

Beyond CAD, the engineering BOM and the manufacturing BOM often live in different systems. Siemens positions Teamcenter as "the system of record for both Design BOM and EBOM", with ERP systems consuming "released, validated product definitions downstream". It also argues that an MBOM manually replicated from the engineering BOM "provides plenty of potential for human error."

Revisions are where drift is controlled. ISO 10007:2017 gives guidance on configuration management, including change control and status accounting, and "is applicable to the support of products and services from concept to disposal." NASA's Systems Engineering Handbook describes approved changes as authorising the update of each baselined document or model. A BOM still showing the old revision after an approved change is a gap in that second step. A BOM check can be set up to report such a gap. Approving or applying the change stays in your change process.

What has to be settled before a BOM check runs?

Each point above becomes a question for the project, answered with your engineers before the check is built:

  • Which field joins the lists: the part number, the part reference or another key.
  • How part numbers are written in each source, for example with or without leading zeros.
  • Which units each source uses, and how base quantities, fixed quantities and "AR" entries are read.
  • How alternative items are treated.
  • Which BOM view is exported: structured, parts only or flattened.
  • Which ERP statuses count as not live, and at which level: product, variant or plant.

Why does the BOM check run in code?

Once those questions are answered, each comparison has one right answer. A line either appears on the drawing or it does not, and a part number is either live in the item master or it is not. A check with one right answer belongs with the rule checks written in code, which give a repeatable result on every drawing at almost no running cost. That is the test for deciding which checks go to code and which to a model.

Research on models reading parts tables shows the risk of the other route. Enginuity, a preprint benchmark published on 2 Jun 2026, tested vision-language models on parts tables from US military service and repair manual diagrams, not factory BOMs. Across eight test conditions, models found between 60.8% and 86.5% of items but described parts poorly. The authors name a "systematic gap between part identification and description fidelity". Their analysis of failures includes long lists cut short after about 10 to 15 items, callouts matched to the wrong part, and quantities that could not be seen returned as 1. A missed line and a wrong quantity are two of the errors a BOM check exists to catch.

The AI model is kept for the checks that need judgement, such as a note that contradicts the specification. The agent is weakest on crowded sheets and small text, so large sheets are read in sections. A sheet the agent cannot read is reported as not read, so it is never counted as matched.

What does the agent need, and why only read access?

The BOM check needs three structured inputs:

  • the BOM or schedule, from a spreadsheet or a CAD export
  • the drawing, as a PDF export or from your CAD platform
  • read access to your ERP item master or item list

Where the BOM of record lives decides which source the first input comes from. That is the same question as which system owns which data between a CRM and an ERP, applied to parts.

The agent only reads. It never writes to the ERP, CAD vault or any other record, and it never changes the BOM or the drawing. Correcting either is the engineer's job, in your normal process. Re-running the review skips any revision that has not changed, the same rule the drawing review agent follows.

Read-only access follows least privilege. The NCSC's guidance on the cyber risk of agentic AI says "Where possible you should restrict the credentials available to the agent", to limit what it calls the agent's "blast radius". OWASP lists as a form of excessive agency an extension that "has permissions on downstream systems that are not needed for the intended operation of the application." In Dynamics 365 finance and operations, Microsoft's data entity security guidance separates View and Maintain privileges and recommends that split as least privilege, so an administrator can build the agent's role from View privileges. The same least-privilege rule applies to Claude agents connected to your ERP data.

Frequently asked questions

Can you automate a BOM check against a drawing?

Yes. Code can match each BOM line to the drawing and back, compare quantities and check part numbers against your ERP item master. An engineer then judges each mismatch.

What is the difference between a BOM and a parts list?

A parts list, in ISO 7573's term, can sit on the drawing or in a separate document. A BOM is normally the structured version kept in a CAD, PLM or ERP system. The check compares the drawing's part references with whichever list you hold.

Does the agent update the BOM or the ERP?

No. It reads the BOM, the drawing and the item master, and reports mismatches. Your engineer makes any correction in your normal process.

Can the agent tell that a part is superseded?

Only if your item master records it. ERPs hold lifecycle status in different ways, so the statuses that mean obsolete or superseded have to be agreed for your ERP before the check runs.

Why not let an AI model read the parts list?

A June 2026 preprint found that models reading parts tables cut long lists short and returned quantities they could not see as 1. A BOM check in code exists to catch exactly those errors.

What if our BOMs are in spreadsheets?

Spreadsheet BOMs work, as do CAD exports. What matters is that the columns are consistent enough for code to read each line.

A BOM check is one part of our work on AI for manufacturing teams, and we can start with a short call about how your BOMs and drawings are checked today. Request a Quote to arrange it.

Written by

John Kelleher

John is the founder and the Chief Executive at SpotDev.