
Is there a way to get the Name of the current model by x++?
*This post is locked for comments
I have the same question (0)Hi,
Please, try to copy/past this piece of code in a job:
int currentModelId = xInfo::getCurrentModelId();
if(currentModelId)
{
info(strFmt("%1", currentModelId));
info(SysModelStore::displayName(currentModelId));
info(SysModelStore::modelId2Name(currentModelId));
}
Regards