For examples of code and script for use in CommandFusion iViewer and guiDesigner, see our GitHub. and see our wiki page on modules and examples.