First of all I've made a class on the class diagram. From the class I've create a sub diagram. This is a simple State Machine Diagram (initial state -> transition -> state -> transition -> final state).
When I try to generate code by select Modeling > State Machine Code > Generate Code... from the main menu, the button Generate Code... is hide.
What could be wrong?
Thanks for your message. State machine code generation is available in VP-UML/SDE Professional Edition or above. I believe you are not running Professional/Enterprise Edition so you get a grey out menu item "Generate Code".
Hope my answer helps you figure out the cause of "problem".