Sequence Editor

The sequence editor is used to create and edit sequences.

Sequence name Defines the name of the sequence.
Min value Defines the minimum value of the sequence. The value equals the Next value by default.
Max value Defines the last code available for the sequence. Once the maximum value is reached, no more codes can be generated until the sequence is modified.
Next value Defines the value of the first code generated from the sequence.
Increment by Determines how much the sequence increments when the user generates the next value from the sequence.
Format data Specifies the format string for the sequence and how the code will be generated. Zeros (0) will be added in front of the number if the current document number is shorter than the formatted style.
TIP: Right-click on the Format data box or click the # button to select the numbering format.

The Format data box in the sequence editor is used to specify the formatting of the code retrieved from the sequence. You can use pre-defined formattings for the sequence to define the amount of digits the sequence code is presented with. The following colors are used to identify the blobs in the sequence data formatting:

Pre-defined function
Invalid item
NOTE: In case you get the invalid item blob in the Format data box, please ensure that the item selected in the format data exists.
Use project specific sequence numbering The sequence starts from the first number in each project where the sequence is used. Select this option to use project-specific document codes starting from the first value with each project.

If this option is not selected, the sequence is used globally and new numbers are generated continuously with all projects.

Rollback value after associated file is deleted The value that was in use by a document referenced in an assembly is rolled back for new use when the document is deleted from inside the assembly where it was referenced.

This option also works project-specific, so if project-specific numbering is in use, the sequence number is rolled back only in the project where the deleted document was assigned.

Next value generated based on value of property Select a property from the Next value generated based on value of property box to determine which property the code generation from the selected sequence depends on.
NOTE: While having the Rollback value after associated file is deleted option selected, please consider the risks mentioned in the Risks While Rolling Back the Sequences section.

The sequence number is rolled back to release the code from the deleted file for later usage when the file is deleted in the following use cases:

  • A sub-assembly is deleted from inside the upper level assembly. See example below.
  • A part is deleted from inside the assembly. See example below.
  • The Search feature: When using the ATR CustomTools Search feature you can delete files in the Search Results dialog box using the File Operations, Delete File command. The sequence code is released from the deleted file when the Rollback value after associated file is deleted option is selected.
  • The Print/Convert feature: When using the ATR CustomTools Print/Convert feature you can delete files in the Batch Operations dialog box using the File Operations, Delete File command. The sequence code is released from the deleted file when the Rollback value after associated file is deleted option is selected.
  • The Where Used feature: When using the ATR CustomTools Where Used feature you can delete files in the Where Used dialog box using the File Operations, Delete File command. The sequence code is released from the deleted file when the Rollback value after associated file is deleted option is selected.
  • The Export feature: When using the ATR CustomTools Export feature you can delete files in the Export dialog box using the File Operations, Delete File command. The sequence code is released from the deleted file when the Rollback value after associated file is deleted option is selected.

Case 1 - A sub-assembly is deleted from inside the upper level assembly

When you delete a whole sub-assembly from the parent assembly, all sequence numbers used by the sub-assembly and its components are released for later use with new components created in the same assembly.

Case 2 - A part is deleted from inside the assembly

When you delete a part from the assembly, the number reserved by the part from the sequence having the Rollback value after associated file is deleted option selected is also released so that the number used by the part will be available for other parts you create later inside an assembly the old part was deleted from.

NOTE: Any sequence number does not roll back for later use when files are deleted using the Delete File command available in File Operations menu in the ATR CustomTools Commands bar. This applies to all dialog boxes and use cases when the Delete File command is used from the ATR CustomTools Commands bar.
NOTE: To roll back the sequence values properly in the ATR CustomTools system, the files that the sequence values were used in are also deleted from the disk. See the following risk descriptions for more detailed information.

While you have the Rollback value after associated file is deleted option selected for a sequence and you delete components using the SOLIDWORKS Feature Manager Design Tree, you are prompted to delete the selected component and all of its sub-components and referenced drawings. The prompt that appears while deleting a sub-assembly from the assembly's structure has the following options:

Option Description Risks
Yes The sub-assembly with its components and referenced drawings are deleted from the structure and also from the disk. The SOLIDWORKS part (*.sldprt) and assembly (*.sldasm) files including their referenced drawings (*.slddrw) are deleted from the disk as well as removed from the model structure. How files are deleted also depends on the Delete files permanently option in ATR CustomTools General User Options. If selected, files are deleted without moving them to the Windows Recycle Bin.
No Nothing is deleted from the disk. The selected component is removed only from the model structure. No files are deleted from the disk using this option.
Just Assembly Just the assembly file is deleted. The selected SOLIDWORKS Assembly File (*.sldasm) and its related SOLIDWORKS Drawing Files (*.slddrw) are deleted from the disk as well as removed from the model structure. How files are deleted also depends on the Delete files permanently option in ATR CustomTools General User Options. If selected, files are deleted without moving them to the Windows Recycle Bin. Part files referencing the deleted assembly are not deleted from the disk.