# Single point placement for vtkMRMLMarkupsLineNode?

**URL:** <https://discourse.slicer.org/t/single-point-placement-for-vtkmrmlmarkupslinenode/8379>\
**Category:** Support\
**Created:** [September 11, 2019, 1:58am UTC](https://discourse.slicer.org/t/single-point-placement-for-vtkmrmlmarkupslinenode/8379 "2019-09-11T01:58:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greydon\_Gilmore](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/greydon_gilmore/32/6863_2.png) [@Greydon\_Gilmore](https://discourse.slicer.org/u/Greydon_Gilmore)\
**Post date:** [September 11, 2019, 1:58am UTC](https://discourse.slicer.org/t/single-point-placement-for-vtkmrmlmarkupslinenode/8379/1 "2019-09-11T01:58:08Z")

</div>

Hello,

I am wondering if it is possible to place one fiducial point at a time when using `MarkupsLineNode`. I would like the user to place one point, without having to place the second point to complete the line.

I’d like the line to be displayed following placement of the second fiducial. I am using the `MarkupsLineNode` to plot a planned trajectory.

I have tried applying the following to each fiducial point but it doesn’t seem to work:

```auto
self.Point = slicer.qSlicerMarkupsPlaceWidget()
self.Point.placeMultipleMarkups = slicer.qSlicerMarkupsPlaceWidget.ForcePlaceSingleMarkup

```

Thanks!  
Greydon

---

<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:** [September 11, 2019, 4:12am UTC](https://discourse.slicer.org/t/single-point-placement-for-vtkmrmlmarkupslinenode/8379/2 "2019-09-11T04:12:55Z")

</div>

You can hide the line until you want to show it by calling `SetLineThickness(0.0)` on the markup’s display node.

One markup is a line, so forcing a single placement will deactivate place mode after the two line points are placed. To disable place mode after one point is placed, you can call `self.Poin.placeModeEnabled = False`.

Alternatively, you can use markup fiducial points to get user input (they can be placed one by one and they are not connected by a line) and when you have the two points, create a markup line using these point positions.
