AP3D_Custom_Component_Sample (zip).
(continued from To create a component using block based geometry)