# Private imports at the highest level

**URL:** <https://forum.sensmetry.com/t/private-imports-at-the-highest-level/408>\
**Category:** Syside\
**Tags:** modeler\
**Created:** [March 4, 2026, 10:04pm UTC](https://forum.sensmetry.com/t/private-imports-at-the-highest-level/408 "2026-03-04T22:04:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mason](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Mason](https://forum.sensmetry.com/u/Mason)\
**Post date:** [March 4, 2026, 10:04pm UTC](https://forum.sensmetry.com/t/private-imports-at-the-highest-level/408/1 "2026-03-04T22:04:22Z")

</div>

Hi there,

The [modeler docs](https://docs.sensmetry.com/modeler/essentials.html#modeler-viz-modes) say that in folder mode, all .sysml files are considered to be in the same project. If that’s the case I would expect for private imports outside of packages to be accessible to all the packages across all files, though maybe I am misunderstanding the implementation. Here’s a minimum reproducible example: is it expected for PartA to be visible from the package B namespace?

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/syside/original/1X/a2f564d41cfa3d21d27c1aa1ff2a192fd0c10e0e.png)

---

<div class="post-metadata">

**Author:** ![Simas](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/simas/32/41_2.png) [@Simas](https://forum.sensmetry.com/u/Simas)\
**Post date:** [March 5, 2026, 7:13am UTC](https://forum.sensmetry.com/t/private-imports-at-the-highest-level/408/2 "2026-03-05T07:13:56Z")

</div>

Hi Mason, in this particular example, you are getting an error because `package B` needs the full qualified name to know which `PartA` you are referring to.

So if you specify `A::PartA`, it will resolve references correctly.

```auto
package B {
    part anotherPartA : A::PartA;
}

```

Equally, you can import `A::*` inside `package B` to avoid writing out the qualified name:

```auto
package B {
    private import A::*;
    part anotherPartA : PartA;
}

```

---

<div class="post-metadata">

**Author:** ![Mason](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Mason](https://forum.sensmetry.com/u/Mason)\
**Post date:** [March 5, 2026, 3:02pm UTC](https://forum.sensmetry.com/t/private-imports-at-the-highest-level/408/3 "2026-03-05T15:02:38Z")

</div>

Thank you for the explanation Simas! Either solution needs to reference package A directly.
