CSWP-API logo
Focused certification exam prep
Start practice

CSWP-API Study Guide 2026: How to Pass on Your First Attempt

TL;DR
  • The exam has 28 questions: 18 hands-on automation tasks and 10 multiple-choice, worth 100 points, with 70 needed to pass.
  • You get 120 minutes, no pausing, and the focus is Visual Basic for Applications (VBA).
  • SOLIDWORKS publishes only four sample multiple-choice questions, so you must build your own hands-on practice fixtures.
  • The 15 issuer-listed objectives are unweighted and the task list is explicitly non-exhaustive.

What You Are Actually Preparing For

The Certified SOLIDWORKS Professional API (CSWP-API) exam, offered by SOLIDWORKS (Dassault Systemes), tests whether you can drive SOLIDWORKS through code, not whether you can model in it. That distinction shapes everything about how to prepare. A strong CSWP-level modeler with no programming habits will struggle; a patient scripter with moderate CAD knowledge often does better than expected.

If you are still orienting yourself on the credential itself, the explainers on what the CSWP-API is and what the acronym stands for cover the basics. This guide assumes you have decided to sit the exam and want a concrete plan for passing it on the first attempt.

Two facts frame the plan. First, there is no prior certification requirement, so you can attempt this exam without holding another SOLIDWORKS credential (see the requirements breakdown). Second, the exam is delivered as a non-proctored online test using your own working SOLIDWORKS installation, which means your setup is part of your preparation, not an afterthought.

The 18-Task, 10-Question Structure

The issuer-linked exam guide specifies 28 questions split into two kinds. Eighteen are hands-on automation tasks, where you write or complete VBA that does something in SOLIDWORKS. Ten are multiple-choice. The total is 100 points, you need 70 to pass, and you have 120 minutes. The exam page confirms the two-hour duration, the 70% passing grade and the emphasis on VBA. For the scoring angle, see the dedicated passing score article.

ElementWhat the issuer statesWhat it means for you
Question count28 totalRoughly 4 minutes per question on average, but tasks cost far more than multiple-choice
Hands-on tasks18 automation tasksYour preparation must be mostly typing and running code, not reading
Multiple-choice10 questionsObject model and API behavior facts; quick points if you know the API well
Passing score70 of 100 pointsA 70% passing grade, which is not the same as a population pass rate
Duration120 minutes, no pausingPlan your time per task; a stuck task can sink your clock
Language focusVBAYou do not need C# for this exam
The sample is thin: The official practice sample contains only four multiple-choice questions, not a 28-question mock. There is no official hands-on sample at that scale, so a large share of your readiness has to come from fixtures and macros you build yourself, which is what the later sections of this guide walk through.

Because published population pass rates were not verified, no honest source can tell you a percentage of candidates who pass. The 70-point threshold is the only hard number. For a realistic sense of effort, read how hard the CSWP-API exam is and the note on what pass rate data does and does not show.

A VBA-First Path for CAD Users

Many candidates arrive as designers or drafters with little or no programming background. If that is you, do not start with the SOLIDWORKS object model. Start with VBA itself, inside the SOLIDWORKS macro editor, so you are never learning a language and an API at the same time.

Stage 1: Language basics that the exam actually leans on

  • Declaring variables with explicit types, and using Option Explicit so typos fail loudly
  • Subroutines and the standard main entry point in a SOLIDWORKS macro
  • Conditionals and loops, especially loops that walk collections of features, components or views
  • Object variables, Set assignments and checking for Nothing
  • Basic string handling for file paths and property names

Stage 2: Connecting code to the application

Learn how a macro gets hold of the running application (the SldWorks object), how it obtains the active document, and how it casts that document to the right specific type (part, assembly or drawing). Most beginner failures at this stage are type mismatches, such as calling a part-only method on an assembly. Get comfortable with the idea that every call returns something you must check.

Stage 3: Small, verifiable actions

Before attempting anything elaborate, write macros whose success you can see instantly: a message box that reports the active document's name, a macro that adds one custom property, a macro that saves a file to a path you choose. Each one proves a piece of the chain. The broader training landscape for the CSWP-API is worth a look if you want structured instruction alongside self-study.

Recommended preparation is not a gate: SOLIDWORKS recommends Design Essentials and API Fundamentals as preparation. The public API Fundamentals course material is a three-day preparation curriculum, but training courses are not exam admission requirements and the course length is unrelated to the two-hour exam. Treat the curriculum headings as useful, unweighted study topics, not as an exam blueprint.

Object Model and API Help Navigation

The first listed objective is understanding the API object model, and it quietly underpins every other one. The object model is the hierarchy of objects you traverse to reach anything: application, then document, then the managers and collections hanging off the document, then individual features, faces, components or views.

Domain 1: Understanding the API Object Model

You should be able to answer "how do I get from the application to X?" without guessing.

  • Know the main objects: application, model document, part, assembly, drawing, feature, component and view
  • Understand that interface names carry version suffixes and that newer interfaces extend older ones
  • Recognize which methods belong to which document type
  • Learn how a method's return type tells you what to do next

Making API Help your primary tool

Because the exam is hands-on and you will be working in your own installation, the SOLIDWORKS API Help is effectively an open reference you must navigate quickly. Practice this as a skill in its own right:

  1. Search by the task ("insert drawing view"), then confirm the exact method signature and its parameters
  2. Read the "Remarks" and "Accessors" sections, which tell you how to reach the object and what pitfalls exist
  3. Check the return type and whether the method can return Nothing or a failure value
  4. Look for the example code attached to a member and adapt it rather than writing from scratch

Time yourself locating a method and its parameters. If it takes you several minutes to find a method, that cost multiplies across 18 tasks. The free reference material at CodeStack and the tutorials from sites such as CADSharp are good supplements for seeing how practitioners read the same documentation, though they are not a substitute for working in the real Help.

What the Macro Recorder Will and Won't Do

The macro recorder is a legitimate learning aid and a frequent trap. It captures the actions you perform and writes VBA, which is useful for discovering which API calls correspond to a UI operation. But its output is brittle and often wrong for reuse.

Recorder behaviorWhy it matters on the exam
Records selections by screen position or nameRecorded code often breaks when the model differs even slightly; you need robust selection logic instead
Emits long, redundant calls with many default argumentsYou must understand each argument to trim and fix it
Does not capture error handling or return-value checksExam tasks reward code that verifies success
Does not model loops or conditionsTraversal and conditional tasks must be written by hand

Key Takeaway

Use the recorder to discover method names, then rewrite the result by hand: replace hard-coded selections with traversal, add return-value checks, and strip arguments you do not understand. If you cannot explain every line you keep, you will not be able to debug it under time pressure.

The 15 Objectives, Grouped by Skill

The issuer lists 15 exam objectives with no percentage weights, and it describes the task list as non-exhaustive. Some headings overlap, especially around drawings, and this guide keeps them as written. For a deeper pass through each one, see the complete guide to all 15 content areas. Here they are grouped into skill clusters to make studying tractable.

Cluster A: Foundations (Domains 1, 2, 15)

Understanding the API Object Model, Troubleshooting, and Save and close documents.

  • Reaching objects through the hierarchy and checking return values
  • Diagnosing why a call fails or returns nothing
  • Saving and closing documents cleanly so macros do not leave files locked or open

Cluster B: Part and feature creation (Domains 3, 6, 7)

Part design automation, Adding sketch entities and dimensions, and Feature creations such as extrudes and cuts.

  • Inserting a sketch on a plane, adding lines, circles and rectangles, then closing the sketch
  • Applying dimensions and understanding sketch relations
  • Creating an extrude or cut from a sketch with correct depth, direction and end conditions

Cluster C: Assembly work (Domains 5, 8, 9)

Assembly automation, Selection and traversal techniques, and Hide/Suppress/Resolve components.

  • Walking the component tree and reading each component's name and state
  • Selecting entities programmatically instead of by mouse position
  • Switching components between hidden, suppressed, lightweight and resolved states

Cluster D: Drawings and outputs (Domains 4, 10, 11, 12, 13)

Drawing Automation, Creation of drawings, Insert drawing views, Insert a BOM, and Save drawings in different file formats.

  • Creating a drawing from a template and placing standard views of a model
  • Inserting a bill of materials and understanding what must exist first
  • Exporting a drawing to other formats by changing the file extension and save options

Cluster E: Data (Domain 14)

Add custom properties.

  • Writing and reading file-level and configuration-specific custom properties
  • Handling the case where a property already exists versus does not

Drawings account for the largest cluster by objective count, even though the objectives are unweighted. That does not tell you how many exam questions each gets, but it does suggest that skipping drawing automation would leave the widest gap in your preparation.

Original Practice Macros and Result Checks

Since there is no full official mock, build your own. The pattern below works for every objective: create a small known model, write a macro that performs one task on it, and define a pass/fail check you can confirm without ambiguity. Do not rely on memorized answers to live exam items; the goal is fluency, so you can solve variations.

Fixture set to build once

  • A simple part: a rectangular block with one hole, saved with at least two features, so traversal has something to find
  • A small assembly: four to six components including one repeated part, so component states and counts are meaningful
  • A drawing template: a blank drawing with a known sheet size, ready for view insertion

Example practice exercises

  1. Custom property writer. Write a macro that adds a "Designer" and a "Material" property to the active part. Result check: open File Properties and confirm both appear with the exact values, then run the macro twice and confirm it does not error or duplicate.
  2. Feature lister. Walk the feature tree of your part and print each feature's name and type to the Immediate window. Result check: the printed list matches the FeatureManager tree, in order.
  3. Component state toggler. In your assembly, suppress every component whose name contains a chosen string, then resolve them again. Result check: counts of suppressed versus resolved components match what you see in the tree before and after.
  4. Sketch and extrude. Create a sketch on the Front Plane, draw a rectangle, dimension it, and extrude it to a fixed depth. Result check: measure the resulting body to confirm the dimensions.
  5. Drawing builder. From your template, create a drawing, insert front, top and right views of the part, then insert a BOM from the assembly. Result check: view count is correct and the BOM row count matches the assembly's unique components.
  6. Export loop. Save the drawing as PDF and as DXF to a temp folder, then close all documents. Result check: both files exist, and no documents remain open.
Why result checks matter: On a hands-on task, "it ran without an error" is not the same as "it did the right thing." Training yourself to verify the outcome, by counting, measuring or inspecting, mirrors what a scored automation task rewards, and it exposes silent failures where a call returns a failure value your macro ignored.

Troubleshooting Like the Exam Expects

Troubleshooting is its own listed objective, and it also decides how many of the other tasks you finish. Build a repeatable diagnostic habit rather than hoping to eyeball problems.

Domain 2: Troubleshooting

Expect to read code that almost works and find why it does not.

  • Step through code line by line and inspect variables in the Locals window
  • Use the Immediate window to test a single call or print an intermediate value
  • Check whether an object variable is Nothing before using it
  • Confirm that the right document is active and is the right type
  • Verify that a selection call actually selected something (it returns a Boolean)
  • Look for off-by-one loop errors and mismatched argument order

Common failure patterns worth drilling

  • Wrong document type: calling an assembly method on a part and getting nothing or an error
  • Selection that silently fails: the call returns False and every later step operates on an empty selection
  • Unfinished sketch: trying to create a feature while the sketch is still open or empty
  • Missing prerequisites: inserting a BOM without a suitable view or table template in place
  • Stale references: using an object after the document it came from has been closed

Deliberately break your own working macros in each of these ways, then practice finding the cause quickly. That rehearses the exact skill the troubleshooting objective measures.

A Domain-Ordered Study Sequence

Generic scheduling advice is not very useful here, so this sequence is tied to the dependencies between objectives: each week unlocks the next. Adjust the length to your starting point.

Week 1

Language and object model (Domains 1, 2)

  • Learn VBA fundamentals inside the SOLIDWORKS macro editor
  • Map the object model on paper from application down to features
  • Practice API Help lookups against a stopwatch
Week 2

Parts, sketches and features (Domains 3, 6, 7)

  • Build the sketch-and-extrude exercise and variations (cuts, different planes)
  • Add dimensions and confirm results by measuring
  • Use the recorder only to discover names, then rewrite by hand
Week 3

Selection, traversal and assemblies (Domains 5, 8, 9)

  • Traverse features, then components, printing results
  • Toggle hide, suppress and resolve states and verify counts
  • Replace every hard-coded selection with a traversal-based one
Week 4

Drawings, BOMs and outputs (Domains 4, 10, 11, 12, 13)

  • Create drawings from a template and insert standard views
  • Insert a BOM and test what breaks when prerequisites are missing
  • Export to multiple formats
Week 5

Data, cleanup and full runs (Domains 14, 15)

  • Custom properties for files and configurations
  • Save and close behavior, including unsaved-change handling
  • Two timed, 120-minute rehearsals combining tasks across clusters

Drawings come after parts and assemblies because drawing automation depends on having models to place on the sheet. The final week's timed rehearsals matter most: because exams cannot be paused, you need to have practiced working continuously for two hours. For a compact recap to read the evening before, use the one-page cheat sheet, and pressure-test your recall on the CSWP-API practice test site.

Logistics, Fees and Exam-Day Mechanics

Treat logistics as part of preparation, because a setup problem during a non-pausable exam can cost you the attempt.

ItemCurrent facts
FeeUS$49 for one North American attempt, excluding software and training
DeliveryNon-proctored online exam through Tangix/VirtualTester, using your own working commercial or student SOLIDWORKS and your own Internet connection
Minimum softwareSOLIDWORKS 2017 or later (a software minimum, not an exam version label)
RetakesA new CSWP-API credit and at least a 14-day wait
PausingNot possible once started
Certificate validityThe issuer's 2020 Q&A states customer and student certifications do not expire
Follow the current client instructions: The linked exam guide contains legacy TesterPRO installation and crash-recovery language. The current VirtualTester Web Client instructions take precedence, so read the issuer's current exam procedure before test day and do a full dry run of your setup. Fees outside North America may differ, so confirm yours; see the pricing breakdown and the notes on scheduling and testing windows.

Practical checklist before you start: close unrelated applications, confirm your SOLIDWORKS version launches and its macro editor works, make sure your connection is stable, and keep the API Help open and responsive. Decide in advance how long you will allow a single task before moving on, since the multiple-choice questions are a cheaper source of points than a stalled automation task.

What Is Out of Scope: C# Add-Ins and PDM

The exam focus is VBA. It is easy to wander into adjacent territory because the SOLIDWORKS API community covers a lot of ground, so draw the boundary clearly.

  • C# and VB.NET add-ins: Building a full add-in with its own UI, registration and deployment is a different discipline from writing macros. It is valuable professionally, but it is not what this exam measures.
  • PDM API work: Automating product data management is a separate API surface with its own object model. It is not part of the 15 listed objectives.
  • Everything beyond the listed objectives: The issuer calls its task list non-exhaustive, so adjacent tasks near each objective could appear, but do not spend weeks on unrelated areas.

Paid training providers and tutorial sites vary in how closely they track the VBA exam scope; some cover add-in development or broader API topics. Check any course's contents against the 15 objectives before paying, since public descriptions do not always make this clear.

Judging the Career Return

It is tempting to justify the exam with a salary figure, but no verified certification-specific salary uplift is available, so any precise number would be invented. A more honest way to evaluate the credential is by what it lets you demonstrate: that you can automate repetitive modeling, drawing and data tasks reliably.

The strongest ROI usually comes from the automation you build while preparing. A macro that populates custom properties across a library of parts, or generates drawings with views and a BOM from a template, is a concrete deliverable that shows value to an employer or client. The certification then serves as external confirmation of that skill. For deeper analysis, read the ROI analysis, the earnings discussion and the overview of roles that value this credential. Roles that tend to care include CAD administrators, design automation engineers and applications engineers who support engineering teams.

Frequently Asked Questions

How many questions are on the CSWP-API exam, and what is the passing score?

The exam has 28 questions: 18 hands-on automation tasks and 10 multiple-choice questions. It is scored out of 100 points and you need 70 to pass, within 120 minutes.

Do I need programming experience before attempting the exam?

No prior certification or programming credential is required to sit the exam, but the focus is VBA, so you will need working VBA skills. A CAD user without a coding background should learn VBA basics first, then layer the SOLIDWORKS object model on top.

Is there an official full-length practice exam?

The issuer's guide includes only four sample multiple-choice questions, not a complete 28-question mock. For hands-on readiness you should build your own fixtures and macros and rehearse under a 120-minute limit.

What happens if I fail, and how soon can I retry?

Retakes require purchasing a new CSWP-API credit and waiting at least 14 days. Because the exam cannot be paused and fees apply per attempt, a thorough dry run beforehand is worth the effort.

Does the certificate expire?

According to the issuer's 2020 Certification Program Q&A, customer and student certifications do not expire. Check the current program pages for any later policy changes.

Passing on the first attempt comes down to fluency: reaching objects through the object model without hesitation, writing and debugging VBA that verifies its own results, and having rehearsed a full two-hour session. Build the fixtures, run the exercises, and use the practice resources to test yourself before booking your attempt.

Ready to pass your CSWP-API exam?

Put this into practice with free CSWP-API questions across every exam domain.