Hi Team,

I am trying to generate the models using report instead of going to each and every object and selecting the option "Generate Model" by right clicking on it manually. I am half way through it. And I got stuck and doesn't know how to proceed. Can someone please let me know where I am doing wrong? Below is the function which I am using for generating model.

function generateModelfortheObject(objectName)
{
  var group = objectName.Group();
  var modelNew = Context.getComponent("ModelGeneration");
  if(objectName.Name(g_nloc) == "XYZ")
  {
    modelNew.generateModelByObjDefs(objectName, objectName.Name(g_nloc), 21, group);
  }
}

Thanks in advance.

Best Regards,

Srinivas.

 or register to reply.

Notify Moderator