Loading multiple model files

Hello,

Is it possible to load multiple model files with Automator? I’m getting errors about unknown packages when trying to load The .sysml file that’s referencing elements from other .sysml files: error (reference-error): No Namespace named

Thanks!

Tom

Never mind, I found the relevant function. (of course only after writing this post, even though I spent a while going through the documentation before..)

Hi Tom,

Yes, you can use the collect_files_recursively() function to quickly get a list of all .sysml or .kerml files. Alternatively, you can also manually list out the files in syside.load_model() function like so: syside.load_model(["file1.sysml", "some_folder/file2.sysml"]) (the number of files is unlimited).

1 Like