Below the code to open and paste a data from first postion in library to document, it is not working fine
InterfacePtr<ILibrary> PtrLibrary;
IDFile sysFile;
std::string path = "/Users/Arun/Desktop/Library.indl";
sysFile.SetPath(WideString(path.c_str()));
//PtrLibrary->Create(sysFile,NULL);
InterfacePtr<ILibraryCmdUtils> libcmdUtils(ILibraryCmdUtils::QueryLibraryCmdUtils());
if(libcmdUtils == NULL)
break;
InterfacePtr<ICommand> openlibcmd(libcmdUtils->CreateLibraryOpenLibCmd(sysFile));
if(openlibcmd == NULL)
break;
CmdUtils::ProcessCommand(openlibcmd);
AssetIDListid;// = libcmdUtils1->GetAssetList();
libcmdUtils->ProcessLibraryPlaceItemsCmd(id[0],PtrLibrary,ac->GetContextDocument());
Can any one correct me. if any thing wrong...