Hi!
(Not so)Shot answer:
I think you are using the message contents in designate's inputs, but you should be using their identifiers.
(UserGuide->Designating the Command, UserGuide->Restrictions on the Text Message File )
Dumb example, would be that I have a TestCommand whose description is "A regular command", but in the message file the identifier would be for example "cmd_test_desc". In this case my code would refer to the description as "cmd_test_desc".
Long answer:
Before trying anything with ribbon definition file, please make sure designate (by its own) works perfectly.
(Aka kill ribbon loading from code and makes sure creo doesnt pick it up from startup or user dir)
This is necessary because designate can fail if some conditions are violated:
- Every TK command must be unique
(for example command name clashes are not allowed, also )
- Message file is corrupted/doesnt follow PTC formatting guidelines
(E.g. Sometime ago I was tired and I made the mistake of specifying identifier in the message file, but I didnt write any message under it, so the command's name was "".)
Also my personal rule is that Command designation must be done from within the Creo entry method, aka I never designate from listener etc. (This doesnt mean that you cant do tricks from within this method. To give you an example if you have a manager class for all command generation, then you would call her methods.)
Will bite you eventually:
Also, if we're classyfing messages a little:
%CIinf_wstr
Application: %0w
#
#
The identifier of this random nonsense would be inf_wstr, because the classifier doesnt "count".
Classifying is also described in the guide under message classification.
(Helpful for internal logging)
Cheers,
csaba