Fusion Lifecycle Forum
Welcome to Autodesk’s Fusion Lifecycle Forums. Share your knowledge, ask questions, and explore popular Fusion Lifecycle topics.

Fusion Lifecycle Forum

Reply
Highlighted
Post 1 of 4
Accepted Solution

Can I reset Sequencer start number via script

108 Views, 3 Replies
10-17-2016 09:43 AM

I have created a sequencer and it increments with every new item I create.  Can I reset the starting number back to 1 after a certain condition?

 

For example I have a numbering scheme, 2016-1, 2016-2, etc...  When the new year occurs I want 2017-1, 2017-2 etc.  How can I do this in my script?

I don't think you can reset a sequence, but maybe you make multiple sequences ... one for 2016 and another for 2017.

I will use the current year as part of the sequence name.  That way when the year changes, a new sequence name starts and it will be set back to 0.

Post 2 of 4

Re: Can I reset Sequencer start number via script

10-17-2016 01:18 PM in reply to: leungjcp

I don't think you can reset a sequence, but maybe you make multiple sequences ... one for 2016 and another for 2017.

Post 3 of 4

Re: Can I reset Sequencer start number via script

10-17-2016 01:20 PM in reply to: tony.mandatori
Ya...I thought about that too.....then I would have a running list of sequencers seq[0] for 2016, seq[1] for 2017.
[http://www.nucap.com/images/image001.jpg] Jason Leung - Design Engineer
NUCAP Industries Inc.
3370 Pharmacy Avenue, Toronto ON
Ph.416 494 1444 FAX.416 494 2505
Jason.Leung@nucap.com

Please visit us at www.nucap.com www.gripmetal.com



[http://www.nucap.com/images/banner-nrx.png]
Post 4 of 4

Re: Can I reset Sequencer start number via script

10-20-2016 11:01 AM in reply to: leungjcp

I will use the current year as part of the sequence name.  That way when the year changes, a new sequence name starts and it will be set back to 0.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post


Couldn’t make it to Autodesk University? Some of the Fusion Lifecycle Classes are available to watch on-demand:
http://autode.sk/2gJmBy3