To get list of all Classes & Tables in AOT

To get list of all Classes In AOT

static void AllClassesInAOT(Args _args)
{
SysDictionary dictionary = new SysDictionary();
ClassId id;
;
id = dictionary.classNext(0);
while(id)
{
info(classId2Name(id));
id = dictionary.classNext(id);
}
}

To get list of all Tables In AOT

static void lookupAOTTables(FormStringControl _ctrl)
{
UtilElements    UtilElementsLocal;

while select * from UtilElementsLocal
where UtilElementsLocal.recordType == UtilElementType::Table // Here we can get list of Enum, EDT etc..
//&& UtilElementsLocal.utilLevel == global::currentAOLayer()         //Prints Current Layer Tables
{
info(UtilElementsLocal.name) ;
}
}