Announcements
Welcome to the Upchain Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Auto-Sequence Project Unique Identifier

Auto-Sequence Project Unique Identifier

When creating a project, a 4-character unique identifier is required. This results in conflicts when users attempt to select the same unique identifier as another user. Ideally, the unique identifier would be auto-generated sequentially as projects are created avoiding any need for user intervention.

 

See images for error shown when entering the same unique identifier. As project quantity increases, the chance for duplicate unique identifiers grows, causing frustration for users when trying to find a code to assign their project. Setting this field to auto-generate next in sequence would resolve the issue.

6 Comments
GTerbrack
Contributor

I strongly support this.

I would even support the removal of the useless 4-char-attribute. There is an auto-generated project number, why do we need a second unique identifier?
If this attribute is need due to some legacy coding, just give us the option to auto-sequence this.

In addition:  I created some databases in the last 25 years and a unique 4-char-attribute is calling for trouble sooner or later. 

Drueda_TEC
Enthusiast

in my case i create a python program to create automatic serials numbers associate a project number.

so at first i create the unique identifier and them create the project.

In the code add a txt file to save all 4 characters and compare when you create a new if exist or not.

 

this is a temporal solution while Autodesk create an option to auto generate.

 

For example with graphical interface.

 

import random
import string
import tkinter as tk

def generar_codigo():
codigo = ''.join(random.choices(string.ascii_uppercase + string.digits, k=4))
return codigo

def comprobar_existencia(codigo, archivo):
with open(archivo, 'r') as f:
lineas = f.readlines()
for linea in lineas:
if codigo in linea:
return True
return False

def guardar_codigo(codigo, archivo):
with open(archivo, 'a') as f:
f.write(codigo + '\n')

def generar_y_guardar():
archivo = 'database.txt'
codigo_generado = generar_codigo()
while comprobar_existencia(codigo_generado, archivo):
codigo_generado = generar_codigo()
guardar_codigo(codigo_generado, archivo)
label_resultado.config(text=f"Código generado y guardado con éxito: {codigo_generado}")

# Crear ventana
ventana = tk.Tk()
ventana.title("Generador de Código Alfanumérico")
ventana.geometry("300x200")

# Agregar widgets
label_titulo = tk.Label(ventana, text="Generador de Código")
label_titulo.pack(pady=10)

boton_generar = tk.Button(ventana, text="Generar Código", command=generar_y_guardar)
boton_generar.pack(pady=10)

label_resultado = tk.Label(ventana, text="")
label_resultado.pack(pady=10)

# Ejecutar interfaz
ventana.mainloop()

Thank you all for your feedback, we are considering this improvement to the application.

 

Best regards,

Tomislav

Status changed to: Accepted
 

Thank you for this idea @mblanchardPXNLJ@Drueda_TEC@GTerbrack 

 

We are removing the need for users to populate unique identifier keys when creating a project as it was also presented at the last ITF event.

 

Best regards!

Tomislav

Status changed to: Implemented

The implementation is complete. For more information, please visit the released notes under fixed issues section here.

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea