# Exporting a model to STL with markups

**URL:** <https://discourse.slicer.org/t/exporting-a-model-to-stl-with-markups/26502>\
**Category:** Support\
**Created:** [November 30, 2022, 4:36am UTC](https://discourse.slicer.org/t/exporting-a-model-to-stl-with-markups/26502 "2022-11-30T04:36:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 1, 2022, 2:12am UTC](https://discourse.slicer.org/t/exporting-a-model-to-stl-with-markups/26502/3 "2022-12-01T02:12:08Z")

</div>

Alternatively, you can use a glyph filter like this:

```python
markup = getNode('F')
glyph = vtk.vtkSphereSource()
glyph.SetRadius(15.0)
glypher = vtk.vtkGlyph3D()
glypher.SetSourceConnection(glyph.GetOutputPort())
glypher.SetInputConnection(markup.GetCurveWorldConnection())
model = slicer.modules.models.logic().AddModel(glypher.GetOutputPort())
slicer.util.saveNode(model, "c:/tmp/something.stl")

```

---

_[View the full topic](https://discourse.slicer.org/t/exporting-a-model-to-stl-with-markups/26502)._
