# Migrate the 3D slicer to my own program

**URL:** https://discourse.slicer.org/t/migrate-the-3d-slicer-to-my-own-program/22994
**Category:** Development
**Tags:** python
**Created:** [April 18, 2022, 1:37am UTC](https://discourse.slicer.org/t/migrate-the-3d-slicer-to-my-own-program/22994 "2022-04-18T01:37:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![zhiyuan](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zhiyuan](https://discourse.slicer.org/u/zhiyuan)
#### Post date: [April 18, 2022, 1:37am UTC](https://discourse.slicer.org/t/migrate-the-3d-slicer-to-my-own-program/22994/1 "2022-04-18T01:37:23Z")

</div>

Can I migrate the 3D slicer view and measurement functions directly to my own Python program? If I can, what information do I need to learn or check

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [April 18, 2022, 1:40am UTC](https://discourse.slicer.org/t/migrate-the-3d-slicer-to-my-own-program/22994/2 "2022-04-18T01:40:12Z")

</div>

Is there anything unclear or unanswered from your original post in January (linked below)?

> [@Pycharm and 3d slicer](https://discourse.slicer.org/t/pycharm-and-3d-slicer/21613):
>
> I would like to ask, can I add the measurement length and angle of 3dslicer and the function of cutting the segmented 3D view to my own Python program. Is to run their own Python program, and then display the divided 3D view, and on this view, cut, length and angle measurement？

---

<div class="post-metadata">

### Author: ![zhiyuan](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zhiyuan](https://discourse.slicer.org/u/zhiyuan)
#### Post date: [April 18, 2022, 9:06am UTC](https://discourse.slicer.org/t/migrate-the-3d-slicer-to-my-own-program/22994/3 "2022-04-18T09:06:32Z")

</div>

Yes, in my post in January, I got the reply that I can write modules in Python in 3dslicer, but what I need is to migrate some modules of 3dslicer to my own Python program. For example, when I run my own code, a window program similar to 3dslicer will be displayed
