AdvancedSOLIDWORKS PDM ProfessionalPrivate AI layer / PDM API / SQL Server

How to add AI to SOLIDWORKS PDM Professional without sending files to a cloud

Question
how to add AI to SOLIDWORKS PDM Professional

Also searched as

  • SOLIDWORKS PDM AI integration on-prem
  • SOLIDWORKS PDM API search files with AI
  • chat with SOLIDWORKS PDM vault
  • SOLIDWORKS PDM private LLM

Short answer

Read vault metadata and file content through the PDM API (the EdmLib COM and .NET interfaces), not by querying the SQL Server vault database, index the results locally, and serve an open-weight model on your own GPUs. Permissions must be mirrored from PDM groups, folders and workflow states into the retrieval layer.

Applies to: SOLIDWORKS PDM Professional on a Microsoft SQL Server vault database, recent annual releases, archive server file storage. Standard (SQL Express) installs are possible but small.

Reference build for a private AI layer on PDM Professional

  1. 1Decide what to answer: file search by data card variables, where-used and references, revision and state history, BOM data card fields, and Q and A over drawings' PDF and document content.
  2. 2Build a small .NET service on a domain-joined server that references the PDM API, logs in to the vault and exposes named read actions to the tool server.
  3. 3Run an extraction job that walks folders, reads data card variables for each latest or released version, and writes metadata plus text (PDF and Office content) to a local index.
  4. 4Mirror permissions: capture folder permissions, workflow state permissions and group membership, store an access marker per indexed file, and enforce it in retrieval.
  5. 5Serve an open-weight model with vLLM or Ollama on local GPUs and keep embeddings local. No outbound access.
  6. 6Keep the vault database untouched except for supported maintenance. Do not run custom queries against it from the assistant.
  7. 7Phase in read-only search, then drafted outputs such as release notes, then workflow transitions through the API after human approval.

Real data paths in PDM Professional

PDM Professional keeps metadata, version history, workflow state and permissions in a SQL Server vault database, and stores file contents on the archive server. The database schema is not published as a stable contract, so queries against it can break after an upgrade and bypass the vault's own permission checks. The supported surface is the PDM API: IEdmVault5 and related interfaces, available as a COM library and through .NET interop.

Data card variables are the practical metadata. Each variable is mapped to file properties and to database values, and can be read per file version. References (for example assembly to part) are exposed through the reference interfaces. Reading files requires the PDM client or API to get a local copy, which is the right place to extract text from PDFs and Office files.

// C# sketch, PDM API (verify interface names against the API help for your release)
IEdmVault5 vault = new EdmVault5();
vault.LoginAuto("EngVault", 0);
IEdmFolder5 folder;
IEdmFile5 file = vault.GetFileFromPath("C:\\EngVault\\Released\\A-10045.SLDPRT", out folder);
IEdmEnumeratorVariable5 vars = (IEdmEnumeratorVariable5)file.GetEnumeratorVariable("");
object description;
vars.GetVar("Description", "@", out description);

Reference architecture

Because PDM is Windows and SQL Server centred, keep the AI layer simple: one Windows service running the API extraction, a Linux or Windows tool server, a vector index, and a GPU host. The extraction service writes an incremental index keyed on file id and version, triggered by a schedule. PDM tasks or add-ins can raise events for released files if you want near real time updates.

A reporting copy of the SQL Server database is tempting for analytics, but with an undocumented schema it should be used only for coarse counts that you validate against the API. Prefer API-built extracts so that metadata means what the data card says it means.

Air-gapped sites are a natural fit. The vault, archive server, extraction service, index and model host can all sit in one enclave and exchange nothing with the internet.

Permissions and write-back

PDM decides access through users and groups, folder permissions and workflow state permissions. An integration that logs in with a single service account sees what that account sees. Export the effective read permission per folder and state into an access marker per indexed file, filter retrieval by the caller's groups, and re-verify by an API read of the file before quoting its content.

Write actions available through the API include changing state, updating variables on a checked-out file and adding comments. Present the exact change to the user, perform it with an account that has the user's rights where practicable, and log it. Check-in, release and ECO style state moves stay human decisions.

Sizing, limits and honest trade-offs

PDM sites are often small to mid sized. A team of 20 to 100 users with a vault of a few hundred thousand files usually fits one GPU of 24 to 48 GB with a 14B to 32B class model, plus a modest CPU server for extraction. Index size is typically single to low tens of GB. Heavier models are rarely needed for metadata and document Q and A.

Limits: the assistant cannot interpret native SOLIDWORKS geometry. Data card quality drives answer quality, so messy descriptions produce messy answers. If you only need fast file and property search, PDM's own search and the Windows search index may be enough, and a simpler read-only report tool can be better than a language model.

Try it here, free

SOLIDWORKS PDM Private AI Layer Blueprint Generator

Open full tool

Generate a plan for adding a private, on-prem AI assistant to a SOLIDWORKS PDM Professional vault using the PDM API.

Common pitfalls

  • !Querying vault tables directly with an undocumented schema and treating the answer as permission safe.
  • !Indexing latest versions only and then quoting them as released. Store state and version with each chunk.
  • !Running the extraction as a vault administrator and exposing everything to everyone.
  • !Ignoring replication: multi-site vaults hold different archive copies, so extraction should target one authoritative site.
  • !Expecting the model to read SLDPRT or SLDDRW internals. Use exported PDFs and data card fields.

How an ERP-grounded AI assistant handles this

A grounded assistant on PDM answers 'show released drawings for this customer that reference this part' by calling reference and data card reads, then lists the files with state and version. Netray builds this as a custom private layer with local models, mirrored permissions and an audit log.

Frequently asked questions

Can I just query the SQL Server vault database?

It works for quick counts, but the schema is not a public contract, can change between releases, and ignores the vault's permission model. Use the PDM API for anything a user will read, and keep database queries to validated, aggregate reporting.

Does this work with PDM Standard?

PDM Standard and PDM Professional differ in capabilities and database engines. The same pattern can apply, but check API availability and licence terms for your edition before planning, and expect smaller scale limits.

How do I stop the AI showing restricted files?

Store an access marker per indexed file, filter retrieval by the caller's groups and re-check by an API read. Where you cannot mirror a rule, exclude that folder from the index.

Is a GPU required?

For a useful local language model, yes, though a pilot can run quantised small models on a single workstation GPU. Search without a language model needs no GPU, and may be all some teams need.

Related

Advanced

How to add AI to Autodesk Vault on-prem using the Vault API

Use the Vault web services API to read files, properties, items and change orders as the asking user, extract document text through the Job Processor or a service, and serve an open-weight model on your own hardware. Vault's roles, folder access control and lifecycle state security stay in force because every read goes through the server.

Advanced

How to add AI to Windchill on-prem with Windchill REST Services

Use Windchill REST Services (the OData based API) as the read path, call it with the identity of the asking user, index documents locally, and serve an open-weight model on your own GPUs. Windchill's domain policies and context teams continue to decide visibility, so the assistant cannot widen anyone's access.

Advanced

How to add AI to Teamcenter on-prem without moving your PLM data

Run an open-weight model on your own GPUs, expose a small set of read-only Teamcenter actions through a tool server that calls the Teamcenter SOA web services as the asking user, and index documents and datasets locally. Teamcenter's Access Manager keeps deciding who sees what, so the assistant cannot show a user anything their own session could not open.

Advanced

How to add a private AI layer to Infor LX / BPCS on-prem

BPCS and Infor LX run on IBM i with their data in Db2 for i, in files that carry short coded names by module. A private AI layer reads those files through read-only SQL views over a replica, indexes documents and attachments separately, exposes approved queries through a tool server, and serves an open-weight model on local GPUs. Writes, if any, go through the supported transaction programs with human approval.

Advanced

How to add a private AI layer to Infor System21 on-prem

System21 runs on IBM i with its business data in Db2 for i. The practical private AI pattern is a read-only replica or extract, SQL views that give files readable names, a retrieval index over documents, a tool server of approved queries, and a locally served open-weight model. User visibility is carried over from System21 security and company set-up, and writes only go through its supported entry points after approval.

Advanced

How to add a private AI layer to Infor EAM on-prem

On-prem Infor EAM stores its data in an Oracle or SQL Server schema whose tables use the R5 prefix, and it exposes web services for supported access. A private AI layer reads equipment, work order and parts data through read-only views on a reporting copy, indexes failure notes and manuals for retrieval, mirrors EAM organisation security, and serves an open-weight model locally. Work orders created or changed by the assistant go through EAM's web services after a person approves.

AI for ERP

A Private LLM Grounded on Your ERP Data

How a private LLM answers questions on your ERP data: RAG plus text-to-SQL, role-based permissions inherited from the ERP, and where each fits.

AI for ERP

AI Agents for ERP, Running On-Prem

A practical guide to on-prem AI agents for ERP: what they can safely automate, where human approval belongs, and how to design the guardrails.

AI for ERP

On-Prem AI for ERP in Aerospace, Defense, and Electronics Manufacturing

A hub guide to on-prem AI across SAP, Infor LN, Costpoint, IFS, and Oracle EBS for aerospace, defense, and electronics manufacturers under ITAR, CMMC, and AS9100.

Stuck on SOLIDWORKS PDM Professional?

Talk to engineers who work inside SOLIDWORKS PDM Professional every week, and who build private AI that answers these questions from your own ERP data.

Keep exploring

Free tools

ERP fixes and how-tos

Runs with your ERP

Guides

AI on your ERP

Software