Conditional Assembly Processing

FEATURE AVAILABLE IN: SOLIDWORKS 3D, SOLIDWORKS PDM

Conditions

Conditions act as filters to ensure that only the desired files are processed. They work by evaluating the properties of each file and can be used to include or exclude files from the publishing process.

General Behavior

PDMPublisher will only process files that evaluate any of the set conditions as true. If no conditions are defined, all files are processed. If one or more conditions are set, at least one must evaluate to true for the file to be included.

Each condition and group has a checkbox on the left. This checkbox allows you to enable or disable individual conditions or entire groups without deleting them, which is useful for temporarily changing logic.

For conditions to work correctly during publishing, you must ensure that “Export references to individual file formats” is checked in the export options. If this option is not enabled, PDMPublisher will not evaluate conditions on each referenced file individually, and the filtering logic will not apply as expected.

You can also import and export conditions. Exporting allows you to save your logic as a reusable file, and importing lets you quickly load pre-defined conditions. If a group is selected during import, the imported conditions will be added into that specific group.

Nested Groups Support (AND/OR)

PDMPublisher supports nested condition groups, allowing you to build advanced logical trees using AND and OR operators. This makes it possible to define complex scenarios such as publishing only drawings in a specific state or parts with certain property values.

  • Each condition and group can be enabled or disabled using its checkbox.
  • New groups can be added by clicking the + (AND/OR) button next to any existing group.
  • Logical nesting allows you to combine multiple layers of conditions for fine-grained control.
  • Imported conditions can also be nested if you select a target group before importing.

Condition Options

OptionDescription
VariableThe variable name to evaluate the condition on.
Condition TypeThe type of comparison or rule to apply.
ValueThe value to compare against.
ConfigurationThe configuration to read the variable from. Use @ for general or custom tab values. If left empty when processing assemblies, the referenced configuration will be used. Otherwise, the Custom tab is used.

Special Variables

These built-in variables appear at the top of the variable list:

  • FileName: File name (e.g. 123456.SLDDRW)
  • Revision: Current revision cached
  • Version: Current version cached
  • Workflow: Workflow name of the file
  • State: Current state name of the file

Operation Types

OperationDescription
TextEqualToChecks if the text is exactly equal to the value. Supports * wildcard.
TextNotEqualToChecks if the text is not equal to the value.
TextLengthLessThanTrue if text length is less than the value.
TextLengthBiggerThanTrue if text length is greater than the value.
TextContainsTrue if the text contains the value.
TextDoesNotContainTrue if the text does not contain the value.
NumberEqualToTrue if number equals the value.
NumberNotEqualToTrue if number is not equal to the value.
NumberLessThanTrue if number is less than the value.
NumberBiggerThanTrue if number is greater than the value.
DateEqualToTrue if date equals the value.
DateNotEqualToTrue if date is not equal to the value.
DateLessThanTrue if date is earlier than the value.
DateBiggerThanTrue if date is later than the value.
YesOrNoEqualToTrue if value equals Yes or No.

Order of Evaluation

PDMPublisher follows a clear evaluation sequence when resolving variables and configurations:

  1. Configuration-Specific Property Lookup
    PDMPublisher first tries to retrieve the value from the referenced configuration of the file.
  2. Fallback to Custom Tab
    If the variable is not found in the referenced configuration, PDMPublisher falls back to the Custom tab.
  3. Assembly References with Empty Configuration Field
    When processing an assembly and the configuration field is empty, PDMPublisher evaluates the condition against the referenced configuration(s) of the children (parts or subassemblies).

This evaluation order ensures maximum compatibility with different property setups, including multi-configuration parts and complex assemblies.

get started with pdmpublisher

Automate exports and publishing in SOLIDWORKS and SOLIDWORKS PDM with a reliable, repeatable process that saves time and ensures consistency.