Hi Bruno,
Using the standard generation options, you can only use the above listed variables, that is correct. If you want to add additional variables, then you may want to use what I did which is an Extended Model Definition on PKEY and changed the PKEY constraint name in the database definition file to use the new attribute you first talked about. You could do this as a post generation transformation too, but you have to run it on the PKey, Reference and/or Index objects accordingly.
If it is a post generation transformation, you have to attach it during the generation because the extended definition on the LDM does not have the exact objects that the PDM does. Also, you need to make sure on the Generation-Detail Tab, that you turn on the Enable Transformations.
HTH,
-Matt C.