# How to refer to external libraries?

**URL:** <https://forum.sensmetry.com/t/how-to-refer-to-external-libraries/92>\
**Category:** Questions / Help\
**Tags:** sysmlv2\
**Created:** [June 2, 2025, 8:54am UTC](https://forum.sensmetry.com/t/how-to-refer-to-external-libraries/92 "2025-06-02T08:54:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hormo](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/hormo/32/54_2.png) [@Hormo](https://forum.sensmetry.com/u/Hormo)\
**Post date:** [June 2, 2025, 8:54am UTC](https://forum.sensmetry.com/t/how-to-refer-to-external-libraries/92/1 "2025-06-02T08:54:15Z")

</div>

I’d like to refer to libraries. I used to create references in EclipseIDE and i am unsure how to do this in SysIDE.

---

<div class="post-metadata">

**Author:** ![Arnas](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@Arnas](https://forum.sensmetry.com/u/Arnas)\
**Post date:** [June 2, 2025, 1:59pm UTC](https://forum.sensmetry.com/t/how-to-refer-to-external-libraries/92/2 "2025-06-02T13:59:04Z")

</div>

If those libraries are textual files, you should just be able to drop them into the same workspace and do

```auto
private/public import <library name>

```

like with any other SysML v2 package

---

<div class="post-metadata">

**Author:** ![TiloWiklund](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/tilowiklund/32/17_2.png) [@TiloWiklund](https://forum.sensmetry.com/u/TiloWiklund)\
**Post date:** [June 3, 2025, 9:39am UTC](https://forum.sensmetry.com/t/how-to-refer-to-external-libraries/92/3 "2025-06-03T09:39:50Z")

</div>

Just a bit of clarification:

Say you have a package in `mylib.sysml`

```auto
package MyLib {
    part p;
}

```

Then as soon as you put `mylib.sysml` in your workspace, the name `MyLib` becomes available anywhere. That is to say, whenever you type `MyLib` it will refer to the package element specified in `mylib.sysml`. In particular, `MyLib::p` refers to the part usage you put in your package.

A `private/public import` statement is only necessary if you want to re-export the names from `MyLib` elsewhere. For example

```auto
package OtherPackage {
    import MyLib::p;
    
    // use p
}

```

makes `p` available (also!) as just `p` inside `OtherPackage`, but you could just as well have used `MyLib::p` directly, without an import.

---

<div class="post-metadata">

**Author:** ![Hormo](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/hormo/32/54_2.png) [@Hormo](https://forum.sensmetry.com/u/Hormo)\
**Post date:** [June 4, 2025, 2:41pm UTC](https://forum.sensmetry.com/t/how-to-refer-to-external-libraries/92/4 "2025-06-04T14:41:15Z")

</div>

Thank you @TiloWiklund and sorry for my unclear question. I was exactly looking for what @Arnas responded.
