SOLIDWORKS PDM Smart Numbering System?

Dear All,

Now i have created a numbering system where it creates a drawing number using different inputs.

Now each inputs is controlled by a variable and that variable is controlled by a list.

Now for a given input if I select a different name from the list. I dont want it create a serial number/ or dont generate that serial number.

For example , If i select the following input above it will generate the number,

APAO00063

But let say in machining type if I went for Secondary instead of Primary, then serial number shall not increment!

How can we achieve this?

SolidworksSolidworks Pdm/enterprise Pdm