Please consult the Online Help File for the most up to date information and functionality.
DriveWorks 14 (and newer) and the Specification PowerPack contain functionality that will achieve similar results as this plugin gives.
Please see the following topic for more information:
The Text File from Variables plugin will create a text file (.txt) from variables, prefixed with TD, created in a project.
This plugin is machine specific and should be installed on each machine where specifications can be created. (DriveWorks Administrator, DriveWorks User, DriveWorks Autopilot, DriveWorks Live)
The installation file is available from the DriveWorks Community website at https://my.driveworks.co.uk/ (login required).
Once downloaded double click the DriveWorksLabsTextFileFromVariablesSetup.msi file to begin the installation process. DriveWorks and SOLIDWORKS should be closed while installing the plugin.
Once installed the plugin is automatically loaded in DriveWorks.
The plugin is uninstalled from Windows Programs and Features, and will be listed as DriveWorks Labs Text File plugin.
Once installed the plugin can be configured by:
The plugin needs to know the name of each project it is to run on.
To Add a project to the list
This is the name of each project the plugin is to be run on, and is case sensitive.
To remove a project that has been added to the list
The plugin can be run when during the Finish or Release process. This is set from the Details are by selecting the required process from the drop down box
For the plugin to create the text file variables need to be applied into each project the plugin can be run on.
The chart below lists the variables required in the project with example rules and meanings.
Variable Name | Rule/Meaning |
---|---|
TD1FileName |
|
TD1HL1 | "This is the header" - Will place the text This is the header on the first line of the text document |
TD1L1 | "Price = " & DWVariableTotalPrice - Will place the text Price = $250 on the first line below any header lines used in the text document (where $250 is the result of the variable referred to in the rule) |
TD1L2 | "Quantity = " & QuantityReturn - Will place the text Quantity = 2 on the second line below any header lines in the text document (where 2 is the result of the form control Quantity) |
TD1L3 | IF(AdditionalNotesReturn="","Delete",AdditionalNotesReturn) - Will remove the line from the text document when no entries have been made in the form control AdditionalNotes, will place the text coming from the form control AdditionalNotes into the third line of the text document. |
TD1FL1 | "This is the footer" - Will place the text This is the footer on the first line after all Line text has been inserted. |
TD2FileName | DWSpecificationID & "-2.txt" - Will create a second text document with the name 5-2.txt in the location the specification files are stored (5 will change according to the DWSpecificationID) |
TD2HL1 | "This is the first header line" - Will place the text This is the first header line on the first line of the second text document |
TD2HL2 | "This is the second header line" - Will place the text This is the second header line on the second header line of the second text document |
TD2L1 | "This is the first line of text" - Will place the text This is the first line of text on the first line below any header lines used in the second text document |
TD2FL1 | "This is the first footer line" - Will place the text This is the first footer line on the first line after all Line text has been inserted in the second text document. |
TD2FL2 | "This is the second footer line" - Will place the text This is the second footer line on the second footer line in the second text document. |