# Selection - Selecting Elements using element IDs

**URL:** <https://forum.dynamobim.com/t/selection-selecting-elements-using-element-ids/29223>\
**Category:** Revit\
**Created:** [December 3, 2018, 8:18pm UTC](https://forum.dynamobim.com/t/selection-selecting-elements-using-element-ids/29223 "2018-12-03T20:18:01Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [December 4, 2018, 3:39pm UTC](https://forum.dynamobim.com/t/selection-selecting-elements-using-element-ids/29223/9 "2018-12-04T15:39:43Z")

</div>

You can select Elements by their ElementId with the internal Dynamo method _(as long as they are in your model)_.

You do have to do it in a code block though.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/f/6f421d61c3b58a0fd1a1e5ee94fdbe36004f2d30.jpeg)

in a codeblock: `Revit.Elements.ElementSelector.ByElementId(elemId)`

---

_[View the full topic](https://forum.dynamobim.com/t/selection-selecting-elements-using-element-ids/29223)._
