Hi Bruno,
Yes, you can use an extended attribute during generation within the PDM. You just have to declare its full name using the %.D:EstDB2% if you are using as part of something like ConstName in the database definition property of a PKey.
HTH,
-Matt C.