command for Importing a file in systemdesk

3 vues (au cours des 30 derniers jours)
Yash Nichat
Yash Nichat le 14 Août 2018
How to import a file in Dspace using m script?

Réponses (1)

Giancarlo Osella
Giancarlo Osella le 16 Juil 2024
After project creation use the following command to import files
FileList{1,1} = arch_file;
FileList{2,1} = 'Comm_Interface.arxml';
ImportSettings = Project.Serializer.GetNewImportSettings();
feature('COM_SafeArraySingleDim', 1);
ImportSettings.SetFilePaths(FileList);
ImportSettings.SetElementSelection({'[/]'});
feature('COM_SafeArraySingleDim', 0);
ImportSettings.ImportDiagrams = 0;
ImportSettings.SelectAllElements = 1;
ImportSettings.ShowImportDialog = 0;
ImportSettings.CheckSettings();
success = Project.Serializer.Import(ImportSettings);

Catégories

En savoir plus sur Big Data Processing dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by