Publishing Full_Grill_Assembly.SLDASM without conditions gives you STEP files for every bolt, a PDF for a bought-in burner nobody drew, and work-in-progress parts mixed in with released ones. Then someone cleans up the folder by hand. Conditions decide which referenced files get into the job before anything is exported. This article builds three condition setups you can copy and shows how to keep them in one Publish profile per product line.

What you’ll end up with
- Setup 1: a condition that keeps made parts and skips purchased ones, so
Brace_Corner_&.SLDPRTgets a STEP and the bought-in burner doesn’t. - Setup 2: a condition that lets only files in the
Releasedstate through, so a part still inWork in Progressnever reaches the supplier package. - Setup 3: a Publish profile named
Grills – Released STEPwith both conditions and its own export location, shared with the team by PIN. - A review dialog before each add-in run that shows what passed, what didn’t, and why.
Before you start
- An assembly publish that already works. Conditions filter the references, so turn on Export references to file formats individually first. In the task, that also needs a BOM Template with name, configuration and quantity columns.
- A property that says whether a part is made or bought. This article uses a custom property named
Sourcewith the valuesMadeandPurchased. Use whatever your data card has; the dropdown only lists values available in the current document context. - For the state condition in the add-in: a vault selected under PDMPublisher > Settings > PDM with Use vault on. Otherwise
Stateisn’t in the menu. The task always has the vault context. - Community Edition of the add-in runs conditions but processes up to 5 references per run. Premium removes that limit. The task has no such limit.
Setup 1: skip purchased parts
Open the editor. In the task that’s the Conditions page of the task. In the add-in select PDMPublisher > Conditions, or use the command arrow to open a named profile.
- Leave the root set to
And. - Click + (Condition) to add a row. A new row stays
Undefineduntil you pick a comparison. - In Variable, pick
Source. - In Comparison, pick
Text Equal To. - In Value, type
Made. Text comparisons aren’t case sensitive, somadematches too. - Leave Configuration empty. PDMPublisher then reads the value from the referenced configuration.
- Click OK.
Only files that pass are processed. If a purchased sub-assembly has children you still want, leave Ignore sub-assembly children when condition checks fail off. Turn it on when a rejected sub-assembly should take its whole branch out of the job. There’s a not-equal text comparison too, so
Sourcenot equalPurchasedworks where some parts have noSourcevalue at all.

Setup 2: publish only released files
- In the same tree, click + (Condition) to add a second row under the root.
- In Variable, pick
State. - In Comparison, pick
Text Equal To. - In Value, type
Released. - With the root at
Anda reference must now be made and released to pass. A part inUnder Reviewis skipped and the review dialog says why.
Conditions are evaluated against the files considered for export during assembly publishing. Whether the top-level assembly itself is tested isn’t covered here, so publish once with the assembly in
Under Reviewand check the result before relying on it.
Setup 3: one profile per product line
In the add-in, a Publish profile stores Publish settings, Annotations and Conditions together. Make one per product line so the export location and the rules travel as a unit.
- Open PDMPublisher > Settings > Publish. Select New > New… and name the profile
Grills – Released STEP. - Set Export location to
C:\Export\Grills\(TopAssemblyName)and Filename to(FileNameWithoutExtension)_Rev(Revision). SelectSTEP (step)in File formats. - Turn on Export references to file formats individually.
- Open Conditions… and build the two rows above. Add a third row,
ProductLineText Equal ToGrill*if the vault mixes product lines in one folder.*is a wildcard in Text equal. - Click OK. Repeat for
Smokers – Released STEPwith its own location andSmoker*value. - To hand the profile to a colleague, select Export, then Export to File… for a
.pdmpublisherprofilefile, or share it with a six-digit PIN that stays valid for 30 days.
Settings used
| Setting | Value | Why |
|---|---|---|
| Root | And | Every row must pass |
| Row 1 | Source · Text Equal To · Made | Skips purchased parts |
| Row 2 | State · Text Equal To · Released | Skips work in progress |
| Row 3 (optional) | ProductLine · Text Equal To · Grill* | Keeps the profile to one product line |
| Configuration | Empty | Reads the referenced configuration |
| Export references to file formats individually | On | Conditions filter references |
| Ignore sub-assembly children when condition checks fail | Off | Children of a rejected sub-assembly still export |
| Review dialog (add-in) | Always opens before an assembly publish | Settings > Publish: condition results are always shown when publishing |
| Profile name | Grills – Released STEP | One profile per product line |
Run it and check the result
In the add-in, select PDMPublisher > Publish with the profile. The review dialog always opens before an assembly publish; the Settings > Publish page says condition results are always shown when publishing. It lists each file with its folder, evaluated destination per format, configuration, quantity, whether a same-name drawing was found, and an Exclusion reason for files that didn’t pass. The summary line reads like 12 included · 2 excluded · 12 files passed conditions.
Clear Use on a file to drop it from this run only; the saved condition tree isn’t changed. Click Publish to go, Edit profile to go back, or Cancel to stop before any file is processed.
After the job, Publishing results groups outputs by source file and configuration. The summary counts published, failed, skipped and cancelled. A file a condition excluded shows as Skipped; select it to read the reason. PDMPublisher > Logs filtered by Skipped shows the same entries.
In the PDM task there’s no review dialog. Run the task from the right-click menu on one assembly, then open the Task Details tab and the log to see which files were checked in.

Variations
- Parts only. Add a row
FileNameText Equal To*.sldprtso sub-assemblies don’t get their own STEP in a supplier job. - Only revised files. Add a row on
Revisionso files with an empty revision are skipped. Empty means no recorded revision in PDM. - Different rules for one configuration. Fill in Configuration on a row and PDMPublisher reads the property from that configuration instead of the referenced one.
- Keep a rule but switch it off. Clear the enable checkbox on a row or group. Disabled items stay in the profile and aren’t evaluated.
- Move rules between profiles. In the Conditions window, select Export… to save an
.edmtdffile, then Import… in the other profile. With no group selected the import replaces the root tree; with a group selected it adds the rules under that group.
Where it goes wrong
| Symptom | Cause | Fix |
|---|---|---|
| Everything is skipped | Root is And and one row can never pass, such as a property no file has | Check each row’s value, or move the row into an Or group |
| Nothing is filtered | Export references individually is off, so no references are evaluated | Turn it on; in the task also pick the BOM Template |
| Row has no effect | Comparison still Undefinedor the row’s enable checkbox is cleared | Pick a comparison and re-enable the row |
State missing from the Variable list in the add-in | No vault selected under Settings > PDM | Turn on Use vault and pick the vault |
| Purchased sub-assembly skipped but its parts still exported | Ignore sub-assembly children when condition checks fail is off | Turn it on if the whole branch should be skipped |
| Import stopped | A condition row was selected before Import… | Select a group or clear the selection, then import again |
| Old rules disappeared after import | Import with no group selected replaces the root tree | Export the profile or conditions first |
| Only 5 files published in the add-in | Community Edition limit per run | Activate Premium, or publish in smaller runs |
Verified against
- conditions.md
- conditions_solidworks.md
- pdmpublisher-conditions/add-conditions-and-groups.md
- pdmpublisher-conditions/condition-fields.md
- pdmpublisher-conditions/condition-types.md
- pdmpublisher-conditions/evaluation-rules.md
- pdmpublisher-conditions/special-variables.md
- pdmpublishersolidworks-condition-files.md
- pdmpublishersolidworks-condition-output.md
- pdmpublisher-options/ignore-sub-assembly-children-when-condition-checks-fail.md
- pdmpublisher-options/export-references-individually.md
- pdmpublishersolidworks_profiles.md
- pdmpublishersolidworks_options.md
- pdmpublishersolidworks_pdm-settings.md
- pdmpublishersolidworks_workflow.md
- pdmpublisher_task_details.md
- pdmpublisherspecialvariable.md
- pdmpublisherfaq.md
- pdmpublishersolidworks_comparison.md
- pdmpublisher-product-differences.md
Availability
Available in PDMPublisher for SOLIDWORKS (the add-in) and PDMPublisher for PDM Professional (the task). The condition editor is the same in the PDM Professional task and the SOLIDWORKS add-in. The task reads PDM variables from the vault; the add-in reads the open document and its references, plus vault values when a vault is selected. Profiles exist in the add-in only; the task stores its conditions in the task definition.
Documentation and related features
- Publishing conditions in the SOLIDWORKS add-in
- Conditions task page
- Conditional assembly processing
- Publishing profiles and company settings
- SOLIDWORKS assemblies
- Supplier packages: one ZIP per vendor
- Build the complete release package on Approve
- Run as a SOLIDWORKS PDM task
Frequently asked questions
How do I stop PDMPublisher exporting purchased parts?
Add a condition on the property that marks the part as made or purchased, for example Source Text Equal To Made. Only references that pass are exported.
Can PDMPublisher publish only files in the Released state?
Yes. Add a condition with the State variable equal to Released. The task reads the state from the vault; the add-in needs a vault selected under Settings > PDM.
Are condition text comparisons case sensitive?
No. Text comparisons aren’t case sensitive, and Text equal accepts * as a wildcard.
Does the review dialog change my conditions?
No. Clearing Use on a file affects that run only. The saved condition tree and profile stay as they were.