Publishing an assembly rarely means publishing everything in it. Purchased hardware has no drawing, a sub-assembly belongs to another supplier, and only parts in the Released state should leave the vault. Conditions are rules, grouped with And / Or logic, that decide which files in the assembly are processed before any export starts.
In short
- Rules read custom properties, PDM variables and built-in values such as FileName, ConfigurationName, State or SheetMetal.
- Text comparisons are not case-sensitive and Text equal accepts
*:FileName equal 11*matches every file whose name starts with 11. - Files that fail are listed with the reason in the review dialog, before anything is written.
How it works

- Start the job on an assembly with Export references to file formats individually on.
- Open the Conditions page (add-in: in the Publish settings; task: the Conditions page of the task) and build the tree: a root group, rows, nested groups.
- Each file is evaluated against the enabled tree; a row that names a Configuration reads the value from that configuration.
- Files that pass are exported; files that fail show up as skipped with the reason.
- Tick Ignore sub-assembly children when condition checks fail when a rejected sub-assembly should take its parts with it.

Settings that matter
| Setting | What to put | Why |
|---|---|---|
| Root And | State equal Released; Source not equal Purchased | Only released, made parts leave the vault. |
| Nested Or | ConfigurationName equal Flat* or SheetMetal is Yes | Alternative ways to catch sheet metal. |
| FolderPath contains | \Vendor\ | Skip vendor sub-assemblies wholesale. |
| Ignore sub-assembly children when condition checks fail | On | A rejected sub-assembly drops its parts too. |

Recipes
| You want | Set | You get |
|---|---|---|
| Released made parts only | Root And: State equal Released; Source not equal Purchased; attach to the Released transition | PDF and STEP for exactly the parts you make. |
| A laser shop package | Root And: Material contains Steel; nested Or: ConfigurationName equal Flat* or SheetMetal is Yes; flat pattern DXF on | DXFs for the steel sheet metal parts, nothing else. |
| Skip vendor sub-assemblies | FolderPath contains \Vendor\; Ignore sub-assembly children on | Vendor trees never export. |
If something looks wrong
- A row never matches: the comparison is still Undefined, or the property does not exist on those files (missing evaluates as empty).
- Everything is skipped: a root And with one impossible row rejects all files. Disable rows with their checkboxes and rerun with the review dialog.
- Children of a rejected sub-assembly still export: that is the default; enable Ignore sub-assembly children when condition checks fail.
- In the task, the set of references is wrong: check the BOM Template columns and the Calculation method.
Availability
The condition editor is shared by PDMPublisher for SOLIDWORKS and the PDM Professional task. Conditions travel with a Publish profile in the add-in and are stored on the task’s Conditions page.
Keep going
Documentation
Frequently asked questions
How do I exclude purchased parts when publishing a SOLIDWORKS assembly?
Add a condition row such as Source Text not equal Purchased under an AND root, enable Export references to file formats individually, and publish. Files that fail the rule are skipped before export.
Can conditions use wildcards?
Yes. Text equal accepts * as a wildcard, so FileName equal 11* matches every file starting with 11. Text comparisons are not case sensitive.
What is the difference between AND and OR groups?
In an AND group every child must pass; in an OR group any child may pass. Nest a group inside another when one part of the rule needs different logic from its parent.
Do conditions work on a single part or drawing?
Conditions filter the files considered for export in assembly processing. Ignore sub-assembly children when condition checks fail also has no effect on a standalone part or drawing.
Why are the children of a rejected sub-assembly still exported?
By default each file is evaluated on its own. Enable Ignore sub-assembly children when condition checks fail to stop traversal below a sub-assembly that fails.
Can I review which files passed before anything is exported?
In the SOLIDWORKS add-in, yes. Show conditions output dialog, on by default, lists the files that passed with destination paths, configuration and quantity, and lets you clear files for that run.
Can I reuse a condition tree in another profile or task?
Export it to an .edmtdf file from the Conditions window and import it into the other profile. Complete profiles and settings bundles also carry conditions.