Home Search

DriveWorks Pro 23
PDMPro: Get Multiple Serial Numbers

Send Feedback

PDMPro: Get Multiple Serial Numbers

This Specification Flow Task will generate multiple new serial numbers.

Note: Ensure the SolidWorks PDM Plugin Settings is set up and enabled.

Properties

Property NameDescription
Serial Number GeneratorThe name of the serial number generator.
QuantityThe quantity of new serial numbers to be generated (Cannot be greater than 1000).

Examples

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 NameExample RuleExample ResultMeaning
Serial Number GeneratorAssemblyNSerialNumberAssemblyNSerialNumberWill get multiple serial numbers from the generator AssemblyNSerialNumber
Quantity888 new serial numbers will be generated.

Result

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:

IndexNew Serial NumbersSuccessError Description
1DSN-0001TRUE
2DSN-0002TRUE
3DSN-0003TRUE
4DSN-0004TRUE
5DSN-0005TRUE
6DSN-0006TRUE
7DSN-0007TRUE
8DSN-0008TRUE

Using the Task in a Specification Macro

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.

Outputs

  • New Serial Numbers

    A Table of new serial numbers generated in the current vault.

Status Outputs

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

  • Serial numbers generated and passed to node output.

Success with Warnings

  • N/A - should never be fulfilled.

Failure (one of the following occurred)

  • Quantity is not an integer
  • Quantity is less than 1
  • Quantity is greater than 1000
  • Not logged in
  • Invalid vault
  • Serial number generator not valid
  • Cannot create serial numbers. See Specification report for details