Author Topic: Item numbers  (Read 1096 times)

0 Members and 1 Guest are viewing this topic.

Offline mstrangerTopic starter

  • Full Member
  • ***
  • Posts: 120
  • Country: gr
  • Gender: Male
Item numbers
« on: Apr 10, 2019, 07:41:55 AM »
Hi all. Is possible when start new job item numbering continuous from last job . and not start from 1 again?

Offline Dean-o

  • Full Member
  • ***
  • Posts: 62
  • Country: us
  • Gender: Male
Re: Item numbers
« Reply #1 on: Apr 10, 2019, 12:43:24 PM »
If I understand you right, you wish to start a new cam job with the first fitting having a certain fitting number. If that is so, you can change any item number you wish. For example, if you want to start at fitting number 97, just change the first fitting entered from #1 to #97 and the fitting ID #'s will continue from there. This only works with numbers, not so well if you have a letter mixed in with your fitting number.

Offline mstrangerTopic starter

  • Full Member
  • ***
  • Posts: 120
  • Country: gr
  • Gender: Male
Re: Item numbers
« Reply #2 on: Apr 10, 2019, 12:55:28 PM »
Hi Dean . thanx for your answer. Yes that would be way to do what i want. The only problem is that would be very difficult to remember the last item number from last job.

Offline Alina

  • Premier Member
  • *****
  • Posts: 922
  • Country: us
  • Gender: Female
Re: Item numbers
« Reply #3 on: Apr 10, 2019, 14:08:08 PM »
Use your filters to see the last item number

Offline DotNet

  • Senior Member
  • ****
  • Posts: 302
  • Country: us
  • Gender: Male
    • MICLOGIC
Re: Item numbers
« Reply #4 on: Apr 10, 2019, 16:47:08 PM »
Here is a COD script that will report the last number used.

Code: [Select]
requires task.selection
dim LastNumber = 0
dim loop = 1
while loop <= task.selection.count
    dim jobitem = task.selection[loop]
    if jobitem.number > LastNumber Then
        LastNumber = jobitem.number
    endif
    loop = loop + 1
endwhile
debug LastNumber

Offline mstrangerTopic starter

  • Full Member
  • ***
  • Posts: 120
  • Country: gr
  • Gender: Male
Re: Item numbers
« Reply #5 on: Apr 11, 2019, 07:15:34 AM »
DotNet , i use this script in last old job , or in the new one?
thanx

Offline Don

  • Premier Member
  • *****
  • Posts: 1183
  • Country: gb
  • Gender: Male
    • Pure Fabs
Re: Item numbers
« Reply #6 on: Apr 11, 2019, 12:30:00 PM »
Run it on the last job  :)
“There's someone in my head, but it's not me.”
― Pink Floyd