• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk PLM 360

    Reply
    Member
    Posts: 4
    Registered: ‎04-13-2012

    Custom Part Numbering Schema

    171 Views, 8 Replies
    04-13-2012 07:49 AM
    Hello, I am trying to setup a part numbering schema that follows our practice. The samples that are included do not match what I need, and I cannot seem to find where to get this setup in the system. Thank you. Cordially, Arno
    Please use plain text.
    Product Support
    Posts: 156
    Registered: ‎03-27-2012

    Re: Custom Part Numbering Schema

    04-13-2012 08:01 AM in reply to: Rdisplay

    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?



    Joe Piggee
    Support Specialist
    Product Support
    Autodesk, Inc.

    Please use plain text.
    Member
    Posts: 4
    Registered: ‎04-13-2012

    Re: Custom Part Numbering Schema

    04-13-2012 08:15 AM in reply to: piggeej
    Joe, Thank you for the reply. My part numbers are as follow: Part numbers are 8 alphanumeric digits with a dash between the first 4 letters and last 4 numbers: A BCD-1234 First letter designates the product from a high-level view, for example: Component Documentation Assembly (anything with a multi-parts BOM is an assembly, for the most part) Finished Product (anything with a barcode) Second letter designates a category: Last two letters designate the detail of the second letter designation. Numbers are sequential, but I may want to use specific ones in some instances where it makes sense. Thank you. Cordially, Arno
    Please use plain text.
    Member
    Posts: 4
    Registered: ‎04-13-2012

    Re: Custom Part Numbering Schema

    04-13-2012 08:16 AM in reply to: Rdisplay
    How do you put line carriage returns in here? My posts show up without the CR, and everything is in one big paragraph. Annoying... Thank you. Arno
    Please use plain text.
    Product Support
    Posts: 156
    Registered: ‎03-27-2012

    Re: Custom Part Numbering Schema

    04-13-2012 10:57 AM in reply to: Rdisplay

    Arno,


    In this scenario are you pulling items from multiple ‘item workspaces’ or are they all grouped in a single workspace?

     

     

     



    Joe Piggee
    Support Specialist
    Product Support
    Autodesk, Inc.

    Please use plain text.
    Product Support
    Posts: 156
    Registered: ‎03-27-2012

    Re: Custom Part Numbering Schema

    04-13-2012 11:50 AM in reply to: piggeej

    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



    Joe Piggee
    Support Specialist
    Product Support
    Autodesk, Inc.

    Please use plain text.
    Member
    Posts: 4
    Registered: ‎04-13-2012

    Re: Custom Part Numbering Schema

    04-16-2012 01:39 PM in reply to: piggeej
    Thank you for the answer. I haven't gone into the scripting yet, but this seems quite a bit complicated... Is there any tutorial in particular that refers to this? Thank you. Cordially, Arno
    Please use plain text.
    Product Support
    Posts: 14
    Registered: ‎04-06-2012

    Re: Custom Part Numbering Schema

    04-16-2012 02:59 PM in reply to: Rdisplay

    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.

    Please use plain text.
    Product Support
    Posts: 156
    Registered: ‎03-27-2012

    Re: Custom Part Numbering Schema

    05-03-2012 12:55 PM in reply to: Rdisplay

    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

     



    Joe Piggee
    Support Specialist
    Product Support
    Autodesk, Inc.

    Please use plain text.