Smart export – use custom properties, sheet names, dates

You are here:

You store your preferences regarding exporting files in Drew’s Blueprints. You can use variables to create filenames, so you never have to do that manually ever again.

We use your SOLIDWORKS export settings as well. These settings control, for example, how drawings with multiple sheets are exported to DWG and DXF.

How to view your export preferences

In the Drew settings, click the Exports tab for an overview of your export settings. Click the plus button to add a new setting, then click the pencil icon to edit the setting:

Drew export settings overview

Changing the details of export settings

Click the pencil icon in the list of export settings to edit this setting. You can choose:

  1. A file type
  2. A friendly name
  3. Whether an export button should be visible for parts, assemblies and drawings.
  4. Whether Drew should ask to overwrite an existing file or overwrite it without asking.
  5. Whether you want to manually confirm the created export path and filename.
  6. For DXF: whether to export flat pattern sheets only.
  7. A path. We use variables to build a path, see below. The default is “<Directory>\<FileName>, which exports the file to the same folder and with the same name as the model you are exporting.

Smart export settings - one-click exports

How to use variables to build a path

Your company probably has a policy on how to create filenames for exports. Our goal is to store those preferences in Drew’s settings.

So for every file, when you click export, Drew builds the path from your settings. You can use hardcoded directories, the current filename, custom properties, dates and times.

Available variables

  • <Directory>
    • The current directory that the file is in
  • <Filename>
    • The current name of the file you are trying to export, without the extension
  • <DateTtime(format)>
    • The current date, time or a combination.
    • See below for how to format the date and time. The formatting is case-sensitive.
  • <Prp(name)>
    • The value of a custom property in this file.
    • Enter the name of the custom property in parentheses, without quotation marks.
    • Only uses file-based properties, not configuration properties.
    • Supports conditional prefixes (see below)
  • <PrpModel(name)>
    • The value of a custom property in the reference model of the current drawing.
    • Enter the name of the custom property in parentheses, without quotation marks.
    • Only valid for drawings.
    • Only uses file-based properties, not configuration properties.
    • Supports conditional prefixes (see below)
  • <SheetOrConfig>
    • The current sheet name (for drawings) or configuration name (for parts and assemblies).
  • <Revision> 
    • The latest revision from the revision table in the current drawing.
    • Only valid for drawings.
    • Supports conditional prefixes (see below)

These tags are not case-sensitive and Windows paths are not case-sensitive either. Only the format between datetime parentheses is case-sensitive.

Four conditional prefixes

Three tags support an extra, conditional, prefix:

  1. Prp
  2. PrpModel
  3. Revision

The prefix can be one of these four:

  1. Dash
  2. Dot
  3. Space
  4. Underscore

You add this prefix between the angled brackets, before the property, like so: “<_Prp(Description)>”.

If the custom property or revision has no value, we don’t add the prefix to the output path. If the custom property has a value, we add both the prefix and the value to the output path.

Example paths

  • <Directory>\<Filename> (this is the default, we’ll add the extension)
  • C:\exports\pdf\<filename>
  • <Directory>\STEP\<Filename>-rev<Prp(revision)>
  • <Directory>\STEP\<Filename>-<DateTime(yyyy-MM-dd)>

How we validate your input

Every time you type a letter in the textbox for the path, we validate the input by converting the input to an example result.

Drew export settings - path validation

If a tag is not complete, like in the image below, or the result is not a valid path, we show a red cross before the textbox. We only save valid changes.

Drew export settings - invalid path

How to format dates and times

We use the standard Windows date-time formatting rules. You can find all the available tags here. The most relevant ones:

  • Date:
    • yy: year 01-99
    • yyyy: year 0000-2100
    • M: month 1-12
    • MM: month 01-12
    • d: day 1-31
    • dd: day 01-31
  • Time:
    • H: hour 1-24
    • HH: hour 01-24
    • m: minute 1-59
    • mm: minute 01-59
    • s: second 0-59
    • ss: second 00-59

This formatting is case-sensitive. A capital M is used for months, a lowercase m is used for minutes.