How to add the form node to project in MSD Axapta

How to add the form node to project ,You can write following code in job to test adding node code.

 void AddnodeToProject(HWND AxChild)  
 {  
   ProjectNode   ChildMenuItemNode;  
   ;  
   ChildMenuItemNode = CDT_Global::extractProjNode(AxChild);  
   if (ChildMenuItemNode)  
   {  
     ChildMenuItemNode = ChildMenuItemNode.getRunNode();  
     ChildMenuItemNode.lockUpdate();  
     ChildMenuItemNode.addUtilNode(UtilElementType::Form, formName);  
     ChildMenuItemNode.unlockUpdate();  
     ChildMenuItemNode.AOTcompile(1);  
     ChildMenuItemNode.AOTcompile(1);  
     ChildMenuItemNode.AOTSave();  
   }  
 }