Hi Steve,
We removed the code generation feature as of SAM 2012.5.11 because we are replacing it with a fully documented API that will be more flexible and use the same simulation code as SAM itself.
If you want to use the code generation feature, you can download and install SAM 2011.12.2, although that version will produce different results than the current version.
Best regards,
Paul.