Generating Entry, Do, and Exit code from state machine diagrams

I have a state machine diagram that I’m generating C++ code from. I have functions that I want to call on Entry and Do. However, I can only select Activities. The instructions I find online at State Machine Diagram Code Generation in Visual Paradigm are a bit different than VP 17.0 that I’m using now. The instructions say to create an Activity and put the code in the Body of the block. When I generate code, I don’t see anything relating to this activity or the code I added.

This is particularly frustrating because I know that SMC does this. I’m trying to replace a hand written .sm file that includes these things, but I can’t seem to figure out how to get Visual Paradigm to do it.

Thank you for your inquiry and I’ve forwarded the details for our engineers to follow up. Please be patient and I’ll keep you posted with any updates. Wish you have a good day!