Gérer des objets de l’AOT

Effacer un menu ou modifier les propriétés d’un menu (valable pour d’autres objets) :

static void Job15(Args _args)
{
    TreeNode treeMenu;
    TreeNode treeMenuItem;

    treeMenu = TreeNode::findNode(#MenusPath + "\\" + "ProductionControl" + "\\...");
    treeMenu.AOTdelete();

    treeMenuItem = TreeNode::findNode(#MenusPath);
    treeMenu = TreeNode::findNode(#MenusPath + "\\" + "ProductionControl" + "\\...");
    treeMenu.AOTsetProperties("PROPERTIES\n IsDisplayedInContentArea #" + "Yes" + "\n ENDPROPERTIES\n");

    treeMenu.AOTsave();
}

Effacer une classe :

static void Job15(Args _args)
{
    #AOT
    TreeNode treeNode;
    TreeNode treeNodeClass;

    treeNode = TreeNode::findNode(#ClassesPath);
    treeNodeClass = treeNode.AOTfindChild('...');

    if(treeNodeClass)
    {
        treeNodeClass.AOTdelete();
    }
}