command for Importing a file in systemdesk

回答 (1 件)

Giancarlo Osella
Giancarlo Osella 2024 年 7 月 16 日

0 投票

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);

カテゴリ

ヘルプ センター および File ExchangeSimscape についてさらに検索

質問済み:

2018 年 8 月 14 日

回答済み:

2024 年 7 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by