# Manual Selection of model Element by click

**URL:** <https://forum.dynamobim.com/t/manual-selection-of-model-element-by-click/48410>\
**Category:** Revit\
**Created:** [March 24, 2020, 8:40am UTC](https://forum.dynamobim.com/t/manual-selection-of-model-element-by-click/48410 "2020-03-24T08:40:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxime.chaptal](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@maxime.chaptal](https://forum.dynamobim.com/u/maxime.chaptal)\
**Post date:** [March 24, 2020, 8:40am UTC](https://forum.dynamobim.com/t/manual-selection-of-model-element-by-click/48410/1 "2020-03-24T08:40:19Z")

</div>

Hi everyone,

I want to developp a numerotation tool. I would to select model elements in the order that I choose and then extract a list of these elements in the order that I had click. I’d search a lot of time and I don’t found anything about that. I know it exist the node “Select Model Elements” but, with this node, we can’t select with click but only with a box selection.

May have you a solution ?

Thank you in advance for your responses.

---

<div class="post-metadata">

**Author:** ![jshial](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jshial/32/91559_2.png) [@jshial](https://forum.dynamobim.com/u/jshial)\
**Post date:** [March 24, 2020, 9:16am UTC](https://forum.dynamobim.com/t/manual-selection-of-model-element-by-click/48410/2 "2020-03-24T09:16:53Z")

</div>

@maxime.chaptal  
I did this long time ago and I just consider it unorthodox. 😂

[Infinite\_Selection.dyn](https://forum.dynamobim.com/uploads/short-url/3Gu2pdLJsJwYcJIPB29mjlvsy9a.dyn) (3.3 KB)

Ok, in order to achieve it:

- An infinite loop, or almost infinite in your context.

- Calling Selection.PickObject(), not plural.

- Collect the element

- Wrap step 1 and 2 into a try block. Break the loop in exception.

- When u’re done with selection, press ESC to trigger OperationCanceledException then  
break the loop.

- Output your collection.

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/2/427ce181d6d1097919b31025f1b96b66ba4b711f.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 24, 2020, 9:29am UTC](https://forum.dynamobim.com/t/manual-selection-of-model-element-by-click/48410/3 "2020-03-24T09:29:10Z")

</div>

A bit easier is this node from the springs package: ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/6/76b99fe42fd8bb22c296d75873870af750063acb.png)

---

<div class="post-metadata">

**Author:** ![maxime.chaptal](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@maxime.chaptal](https://forum.dynamobim.com/u/maxime.chaptal)\
**Post date:** [March 24, 2020, 9:46am UTC](https://forum.dynamobim.com/t/manual-selection-of-model-element-by-click/48410/4 "2020-03-24T09:46:07Z")

</div>

@jshial Thanks for this ! I think it is exactly what I need !

Thank you also @jacob.small for this node. In this case I prefer use a python script to work next on the selected element in the same script.
