# How to set the line width of a model in slice display?

**URL:** <https://discourse.slicer.org/t/how-to-set-the-line-width-of-a-model-in-slice-display/19300>\
**Category:** Development\
**Tags:** python\
**Created:** [August 22, 2021, 11:58pm UTC](https://discourse.slicer.org/t/how-to-set-the-line-width-of-a-model-in-slice-display/19300 "2021-08-22T23:58:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jumbojing](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jumbojing/32/10811_2.png) [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Post date:** [August 22, 2021, 11:58pm UTC](https://discourse.slicer.org/t/how-to-set-the-line-width-of-a-model-in-slice-display/19300/1 "2021-08-22T23:58:03Z")

</div>

How to set the line width of a modle in slice display by python?

@lassoan@Juicy@jamesobutler @jcfr @pieper  
Like this:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/c/ac47869c5a2e6df8d316007548d44cefaa636ee8.jpeg)

---

<div class="post-metadata">

**Author:** ![jumbojing](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jumbojing/32/10811_2.png) [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Post date:** [August 23, 2021, 10:54am UTC](https://discourse.slicer.org/t/how-to-set-the-line-width-of-a-model-in-slice-display/19300/2 "2021-08-23T10:54:04Z")

</div>

@lassoan@Juicy@jamesobutler @jcfr @pieper

I try:

```auto
mp.SetLineWith(13)

```

the line width fo the modle is changed in 3d slice with line frame only…

---

<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:** [August 23, 2021, 11:46am UTC](https://discourse.slicer.org/t/how-to-set-the-line-width-of-a-model-in-slice-display/19300/3 "2021-08-23T11:46:23Z")

</div>

Yes, that is how it is supposed to work. If you need the model of a larger diameter needle, screw, etc. then you can create or load a model of a larger object or apply a scaling transform to your the model (linear transform of a 4x4 diagonal matrix, with values \>1.0 in one or more of the first 3 values, and 1.0 as the last value).
