# How to set makupline diameter to absolute?

**URL:** <https://discourse.slicer.org/t/how-to-set-makupline-diameter-to-absolute/17738>\
**Category:** Support\
**Created:** [May 22, 2021, 11:27pm UTC](https://discourse.slicer.org/t/how-to-set-makupline-diameter-to-absolute/17738 "2021-05-22T23:27:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![apparrilla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/apparrilla/32/9230_2.png) [@apparrilla](https://discourse.slicer.org/u/apparrilla)\
**Post date:** [May 22, 2021, 11:27pm UTC](https://discourse.slicer.org/t/how-to-set-makupline-diameter-to-absolute/17738/1 "2021-05-22T23:27:12Z")

</div>

Hi everyone!  
I need to change Line Thickness Display Property to an absolute value by script.  
Something like this:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/e/5e87c364ceb92261e63e5f56a1afde5c40466b4d.png)

Thanks on advance!

---

<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:** [May 23, 2021, 1:28am UTC](https://discourse.slicer.org/t/how-to-set-makupline-diameter-to-absolute/17738/2 "2021-05-23T01:28:13Z")

</div>

It appears you are looking for the following method available in the vtkMRMLMarkupsDisplayNode as this would be for the markups line node display settings.

[https://apidocs.slicer.org/master/classvtkMRMLMarkupsDisplayNode.html#a5e452bb436f3b4cfbecef72518ce26a9](https://apidocs.slicer.org/master/classvtkMRMLMarkupsDisplayNode.html#a5e452bb436f3b4cfbecef72518ce26a9)

---

<div class="post-metadata">

**Author:** ![apparrilla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/apparrilla/32/9230_2.png) [@apparrilla](https://discourse.slicer.org/u/apparrilla)\
**Post date:** [May 23, 2021, 6:26am UTC](https://discourse.slicer.org/t/how-to-set-makupline-diameter-to-absolute/17738/3 "2021-05-23T06:26:59Z")

</div>

Not exactly. SetUseGlyphScale() works like upside “Glyph Size” toggle button. I need downside “Line Thickness” toggle button. I´ve been looking fot it in vtkMRMLMarkupsDisplayNode documentation but I cannot find a proper method for it…

Thanks @jamesobutler .

---

<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:** [May 23, 2021, 1:14pm UTC](https://discourse.slicer.org/t/how-to-set-makupline-diameter-to-absolute/17738/4 "2021-05-23T13:14:18Z")

</div>

Which specific Markups node type are you using?

---

<div class="post-metadata">

**Author:** ![apparrilla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/apparrilla/32/9230_2.png) [@apparrilla](https://discourse.slicer.org/u/apparrilla)\
**Post date:** [May 23, 2021, 7:59pm UTC](https://discourse.slicer.org/t/how-to-set-makupline-diameter-to-absolute/17738/5 "2021-05-23T19:59:12Z")

</div>

vtkMRMLMarkupsLineNode.  
Maybe I get solution: I´m using these two methods SetCurveLineSizeMode(1) and SetLineDiameter(1.0) and it works…
