Understanding Part Number Regex for 3D Illustrations
When adding a 3D Model to a Page in Documoto, Publishers must define a Part Number Regex during the Map to Model BOM step.
This article outlines what a Part Number Regex is, why it is currently required, and how to define one for your 3D CAD format.
Article Topics
- What is a Part Number Regex?
- Why is a Part Number Regex Required?
- Need Help Defining a Part Number Regex?
- Part Number Regex: Format Starters
What is a Part Number Regex?
A Part Number Regex is a search pattern that informs Documoto how to retrieve part numbers from CAD PMI properties (e.g. CAD files generated from SolidWorks, Inventor, etc.) in the 3D model.
Why is a Part Number Regex Required?
For the initial release of 3D Illustrations, defining the Part Number Regex is required so Documoto can match the correct part number to your BOM.
The Part Number Regex is temporary, early access requirement for 3D Illustrations.
Help Us Improve!
We fully intend to move away from requiring a Part Number Regex and simplify this step. Please share your feedback in the Feedback Forum. Your input directly shapes upcoming enhancements.
Need Help Defining a Part Number Regex?
If the Part Number Regex format examples below do not work for your CAD format and you cannot complete the Map Model to BOM step when adding a 3D Model to a Page, please contact support@documoto.com.
When submitting a support ticket, please include:
- CAD application & version
- Sample CAD files
- If known: A few example strings showing where the part number appears, and the
expected extracted part number.
Part Number Regex: Format Starters
Identify your CAD format below and use the corresponding starter format as a reference.
SolidWorks
- File Extensions: .sldasm, .sldprt
| Common Part Number Property Format | Target Part Number Value | Applicable Part Number Regex |
| ABC-123-4 | ABC-123 | ^\s*(.+?)\s*(?=\s*-\s*[^-]*$) |
| 123456-10 | 123456 | ^\d+ |
| 123456-10 | 123456-10 | ^\d+(-)\d+ |
Autodesk Inventor
- File Extensions: .iam, .ipt
| Common Part Number Property Format | Target Part Number Value | Applicable Part Number Regex |
| ABC-123 x 4 | ABC-123 | ^\s*(.+?)\s*(?=\s*[x×]\s*\S) |
JT
- File Extensions: .jt
| Common Part Number Property Format | Target Part Number Value | Applicable Part Number Regex |
| ABC-123_4 | ABC-123 | ^\s*(.+?)\s*(?=_[^_]*$) |
| 12345678_A;1-abc, name_12345 | 12345 (end of the string) | (\d+)$ |
| AB12345678_A;1-partA, name_12345 | AB12345678 (substring prior to "underscore" char) | ^[^_]+ |
Creo / ProE
- File Extensions: .asm, .prt
| Common Part Number Property Format | Target Part Number Value | Applicable Part Number Regex |
| ABC-123 - 4 | ABC-123 | ^\s*(.+?)\s*(?=\s*-\s*\S) |
CATIA
- File Extensions: .step, .3dxml
| Common Part Number Property Format | Target Part Number Value | Applicable Part Number Regex |
| ABC-123 (Qty: 4) | ABC-123 | ^\s*(.+?)\s*\(\s*Qty\s*[:=]?\s*[^)]*\)\s*$ |