In mechanical engineering, precision matters — not just in design, but also in how data is handled. If your team is manually entering data into SolidWorks PDM cards, you’re opening the door to typos, inconsistencies, and wasted time. A better solution? Dynamically populated card lists using SQL queries. This guide shows you how to connect a card list to your SQL database to automate dropdowns like project names, supplier codes, or material types.

A card list in SolidWorks PDM is a dropdown menu that appears on a data card. It allows users to select predefined values rather than typing them in manually. These lists can be:
In this guide, we focus on dynamic lists — specifically, how to pull values directly from a SQL table.
Instead of maintaining dropdown values manually, you can link the list to a live database. Benefits include:
For example, if you maintain a Projects table in SQL, linking it to your card ensures that all engineers see the same project names in real time.
Before you begin:
Ensure your SQL Server contains the table or view with the data you want to display. For example:
CREATE TABLE Projects (
ProjectID INT PRIMARY KEY,
ProjectName NVARCHAR(100)
)
Add a few sample rows to test with.
Use SQL Server Management Studio to test a simple SELECT query. For example:
SELECT ProjectName FROM Projects ORDER BY ProjectName
You can use PDM variables in your query for advanced behavior. For example, filter by logged-in user:
SELECT ProjectName FROM Projects WHERE AssignedTo = '%username%'
Or filter by file type or folder path using %filename%, %path%, etc.
Dynamic card lists are a simple but powerful upgrade to your SolidWorks PDM setup. By connecting them to your SQL database, you reduce errors, enforce consistency, and automate tedious admin work.
Now that you know how to create SQL-based lists, consider applying this technique to any field in your data cards that relies on centralized or frequently changing data — and take one more step toward cleaner, smarter engineering workflows.
Let me know if you want a downloadable PDF version or a version formatted for web publishing.

Ken Maren
Chief Solutions Architect
SolidWorks Expert with 30+ Years Experience
Redirecting...