Dynamo CODE BLOCK DESIGN SCRIPT

Hello I need to personalize this node and translate it into French.
How to do this type of code block please?

Hi @anthony.cartaLB7C7,
Welcome to the Dynamo Community.

You cannot have a variable name with spaces in it.
So NUMERO DE LA FEUILLE will not work. It has to be NUMERO_DE_LA_FEUILLE or NUMERO-DE-LA-FEUILLE or something like that (but no spaces in between)

Also, you should use NUMERO_DE_LA_FEUILLE[0] (with square brackets) and not (0) round brackets.

2 Likes

Hello,
you can also write this
NUMERO_DE_LA_FEUILLE = x[0]
NOM_DE_LA_FEUILLE = x[1]
GABARIT_DE_VUE = x[2]
NOM_DE_LA_VUE = x[3]
INDICE = x[4]

1 Like


Thank you :smiley: