Arno,
To better tailor an answer for you that will meet your needs, can you please provided an example of what you would like this number to look like, also are you trying to use to auto-number field or tailor the Sequencer workspace to achieve this?
Arno,
In this scenario are you pulling items from multiple ‘item workspaces’ or are they all grouped in a single workspace?
Arno,
If you are using a single item workspace, you would be able to generate this item with the combination of the “Sequencers workspace” and Modification of the ItemSeqGen action script.
However your lastline (currently line 14) would look something like:
Item.Number = highview + catNumber + subview ‘-‘ + newItemNumber;
Key:
high-level view (1) - hlview
category (1) - catNumber
detail of the second letter(2) -subview
Numbers are sequential (4) - newItemNumber
Hi Arno,
Joe is traveling today.
Michelle Stone has posted a similar response to scripting in the post titled: server side JavaScript.
I am re-posting her response here as FYI:
All the currently available information about scripting is on our WikiHelp in the scripting section. As new information becomes available, you'll find it there.
Regards,
Boris Chan
Product Support Specialist
Autodesk, Inc.
Arno,
I had a request for this on Tuesday so I thought I would share it with you. This is a simple case senerio based on single workspace auto numbering based on conditions chosen:
/*
Purpose:
Create a custom part number based on options selected in the workspace
*/
var a = item.PRE_CONDITION; //sets pre number based on item chosen
var b = item.AUTO_NUMBER; //brings in the number provided by the auto numbering field
var c = item.POST_CONDITION; //sets post number based on variable chosen
var d = '00-0000-00'
//selection for pre number
switch (a)
{
case "wood":
var a = 01
break;
case "plastic":
var a = 02
break;
case "metal":
var a = 03
}
//selection for post number
switch (c)
{
case "alpha":
var c = '99'
break;
case "beta":
var c = '88'
break;
case "omega":
var c = '77'
}
var d = a+'-'+b+'-'+c; //create the number layout
item.PART_NUMBER = d; //add it back to the workspace
Can't find what you're looking for? Ask the community or share your knowledge.