This Specification Flow Task will generate multiple new serial numbers.
Note: Ensure the SolidWorks PDM Plugin Settings is set up and enabled.
| Property Name | Description |
|---|---|
| Serial Number Generator | The name of the serial number generator. |
| Quantity | The quantity of new serial numbers to be generated (Cannot be greater than 1000). |
| Vault Name | The name of the vault to use. If no vault is given, the first listed in the plugin settings will be used. |
When this task is added the properties are static by default.
See How To: Change A Static Property To A Dynamic Property to enable rules to be built on these properties.
| Property Name | Example Rule | Meaning |
|---|---|---|
| Serial Number Generator | AssemblyNSerialNumber | Will get multiple serial numbers from the generator AssemblyNSerialNumber |
| Quantity | 8 | 8 new serial numbers will be generated. |
| Vault Name | "Shop Data" | Will retrieve the serial number(s) from the Shop Data PDM vault |
| Vault Name | "" | Will retrieve the serial number(s) from the PDM vault first listed in the PDM plugin settings. |
The result passed to the New Serial NumbersOutput node is an array.
Using the example above this will look like:
{"Index","New Serial Numbers","Success","Error Description";
1,"DSN-0001",TRUE,"";
2,"DSN-0002",TRUE,"";
3,"DSN-0003",TRUE,"";
4,"DSN-0004",TRUE,"";
5,"DSN-0005",TRUE,"";
6,"DSN-0006",TRUE,"";
7,"DSN-0007",TRUE,"";
8,"DSN-0008",TRUE,""}When viewed as a table:
| Index | New Serial Numbers | Success | Error Description |
|---|---|---|---|
| 1 | DSN-0001 | TRUE | |
| 2 | DSN-0002 | TRUE | |
| 3 | DSN-0003 | TRUE | |
| 4 | DSN-0004 | TRUE | |
| 5 | DSN-0005 | TRUE | |
| 6 | DSN-0006 | TRUE | |
| 7 | DSN-0007 | TRUE | |
| 8 | DSN-0008 | TRUE |
This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.
Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.
A Table of new serial numbers generated in the current vault.
This task supports Status Outputs. They can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.
The status output navigation is as follows:
Success
Success with Warnings
Failure (one of the following occurred)