Why was I able to input letters in the Loop Number despite it being defined as a Number type?

Why was I able to input letters in the Loop Number despite it being defined as a Number type?

abansado4341
Contributor Contributor
179 Views
1 Reply
Message 1 of 2

Why was I able to input letters in the Loop Number despite it being defined as a Number type?

abansado4341
Contributor
Contributor

Our current Instrument Tag includes the Loop Number.

abansado4341_0-1778486086782.png

The Loop Number is currently defined as a Number type.

abansado4341_1-1778486310010.png

Now, our client wants to include letters in the Loop Number, so I need to change the property type to String. However, before making this change, I created an instrument and assigned its tag. I was able to input “TEST” as the Loop Number, and no error occurred, even though the Loop Number is defined as a Number type.

abansado4341_2-1778487768363.png

abansado4341_3-1778487783880.png

I was wondering why I was able to input letters in the Loop Number despite it being defined as a Number type. Should I change the Loop Number to a String type or not? If I do not change it to a String type, will there be any potential issues in the future?

 

 

0 Likes
Accepted solutions (1)
180 Views
1 Reply
Reply (1)
Message 2 of 2

DVaquand
Mentor
Mentor
Accepted solution

Hello @abansado4341 

 

This is explained by the fact that in the "ProcessPower.dcf" database the "LoopNumber" property is declared as a character string.
I noticed that certain properties did not have the same type of data between those declared in the project configuration and the ".DCF" database.
I think that for some properties the type is hard defined, without being identical to the database.

We find the same case in 3D for the numbering of welds. In the project the "WeldNumber" property is declared as a character string, in the "Piping.dcf" database as an integer.
As a result, we cannot, unless we manually modify the "DCF" file, define a weld number as a character string.

 

DVaquand_0-1778537543906.png

 

 

== French ==

 

Cela s'explique par le fait que dans la base de données "ProcessPower.dcf" la propriété "LoopNumber" est déclarée comme étant une chaine de caractère.
J'ai pu constater que certaines propriétés n'avaient pas le même type de données entre celles déclarées dans la configuration du projet et la basse de données ".DCF".
Je pense que pour certaines propriétés le type est défini en dur, sans pour autant être identique à la base de données.

On retrouve le même cas en 3D pour la numérotation des soudures. Dans le projet la propriété "WeldNumber" est déclarée comme étant une chaine de caractère, dans la base de données "Piping.dcf" comme étant un entier.
De ce fait on ne peut pas, sauf modification manuelle du fichier "DCF", définir un numéro de soudure comme étant une chaine de caractère.

 

Cordialement
Dominique VAQUAND
www.dovaq.fr

Cordialement
Dominique VAQUAND
www.dovaq.fr

Cette publication vous a-t-elle été utile ? N’hésitez pas à attribuer la mention J’aime à cette publication.
Avez-vous obtenu la réponse à votre question ? Cliquez ensuite sur le bouton ACCEPTER LA SOLUTION.

EESignature

0 Likes