# Loading multiple model files

**URL:** <https://forum.sensmetry.com/t/loading-multiple-model-files/375>\
**Category:** How-to Guides\
**Tags:** automator\
**Created:** [January 12, 2026, 4:48pm UTC](https://forum.sensmetry.com/t/loading-multiple-model-files/375 "2026-01-12T16:48:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomBaker](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@TomBaker](https://forum.sensmetry.com/u/TomBaker)\
**Post date:** [January 12, 2026, 4:48pm UTC](https://forum.sensmetry.com/t/loading-multiple-model-files/375/1 "2026-01-12T16:48:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TomBaker](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@TomBaker](https://forum.sensmetry.com/u/TomBaker)\
**Post date:** [January 12, 2026, 5:12pm UTC](https://forum.sensmetry.com/t/loading-multiple-model-files/375/2 "2026-01-12T17:12:05Z")

</div>

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

> **[syside](https://docs.sensmetry.com/python/latest/syside/index.html#syside.collect_files_recursively)**
>
> Build the AST for document from its text\_document. Any existing model will be cleared, and the built model will not have its references linked. Instead, most references will use placeholder references that will be replaced by actual targets in...

---

<div class="post-metadata">

**Author:** ![Simonas](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/simonas/32/13_2.png) [@Simonas](https://forum.sensmetry.com/u/Simonas)\
**Post date:** [January 13, 2026, 2:20pm UTC](https://forum.sensmetry.com/t/loading-multiple-model-files/375/3 "2026-01-13T14:20:31Z")

</div>

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