Привет!
Не понимаю что ты имеешь ввиду.
В помощи есть хороший пример, может он поможет
X++:
public TreeNode getVirtualTreenode( Filename _filename = this.fileName())
{ #AOT
#AotExport
TmpAotImport tmpImportAot;
SysImportElements sysImportElements = new SysImportElements();
TreeNode treeNodeImport = null;
int exportId;
int flag = (#impGetCompareNode + #impKeepIds);
str name;
;
// Set the filename.
sysImportElements.newFile(_filename);
// Get info from the file
tmpImportAot = sysImportElements.getTmpImportAot();
// Create an import context
exportId = infolog.startImport(_filename, flag);
// Get the right name
// for doc nodes it is the path excl. the first part
switch (tmpImportAot.UtilFileType)
{
case UtilFileType::Application:
name = tmpImportAot.TreeNodeName;
break;
case UtilFileType::ApplicationCodeDocumentation:
name = strdel(tmpImportAot.TreeNodePath, 1, strlen(#ApplicationDeveloperDocPath));
break;
case UtilFileType::ApplicationHelp:
name = strdel(tmpImportAot.TreeNodePath, 1, strlen(#ApplicationDocPath));
break; case UtilFileType::KernelHelp:
name = strdel(tmpImportAot.TreeNodePath, 1, strlen(#SystemDocPath));
break;
default:
name = tmpImportAot.TreeNodeName;
break;
}
// Import the node in memory
treeNodeImport = infolog.getImportedNode(
exportId,
tmpImportAot.UtilFileType,
tmpImportAot.UtilElementType,
name,
tmpImportAot.FilePos,
flag);
// Close the import context infolog.endImport(exportId, 1);
return treeNodeImport;
}
Смотри хелп xInfo.getImportedNode