Hi all,
I'm looking for a way to generate the next serial number during Workflow transition?
Any suggestions? Why it is so simple to do it with revisions?
Thanks Amit
I'm looking for a way to generate the next serial number during Workflow transition?
Any suggestions? Why it is so simple to do it with revisions?
Thanks Amit
I've already set serial number (using the admin tool) and attached it to a variable in the document card.
The problem is that I would like to generate this serial number during workflow transition in the same way we all do with revisions.
I must missed something because it's need to be simple to configure in any PDM tool.
The onlly way I succeed to generate next serial is using templates but it has nothing to do with workflow.
How is the Serial Number you want to generate being used?
It's not the file name, right?
1. In every solidworks drawing card I've ECO-Number varible which was defined to be serial number.
2. In this way first time that creating the file I've the first number.
I would like that when the ECO process is apporoved together with updating the new revision the ECO number will be updated to the next one that is avilable.
I don't think that i can solve it without any custom code.
I buried in work, so I don't have time to try this and see if it works for you;
In a Workflow Transistion, Action, Set Variable (use the Variable the Serial Number generator writes to)
Will this get the next serial number available and update the file?
Can't be done... you must create an add-in.
Regards,
Joy
Busted by the teacher!
We have a startflow and everything is controled from there to other workflow, if a file is created in this folder it automatically gets the next serial number from the system. So a start workflow would be like:
If the file has been created in this path the file is auto transfered to the "serialNumber workflow" and auto transfered with a serial number to any workflow of your choice?
Thats what we do...
Dim VaultName As String = '*****Name of the Vault******
Dim vault As New EdmVault5
vault.LoginAuto(VaultName, Me.Handle.ToInt32)
Dim SerNo As IEdmSerNoGen6 = vault
Dim SerNum As String = SerNo.GenerateSerNo('********Name of the serial number*******)
Just add the name of the vault and the name of the serial number and you are good to go
The serial number is returned as the string "SerNum"