# Pin/Unpin Revit elements using Dynamo

**URL:** <https://forum.dynamobim.com/t/pin-unpin-revit-elements-using-dynamo/2792>\
**Category:** Packages\
**Created:** [December 25, 2015, 6:40am UTC](https://forum.dynamobim.com/t/pin-unpin-revit-elements-using-dynamo/2792 "2015-12-25T06:40:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viraj\_Voditel1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/viraj_voditel1/32/17254_2.png) [@Viraj\_Voditel1](https://forum.dynamobim.com/u/Viraj_Voditel1)\
**Post date:** [December 25, 2015, 6:40am UTC](https://forum.dynamobim.com/t/pin-unpin-revit-elements-using-dynamo/2792/1 "2015-12-25T06:40:09Z")

</div>

Hello, I am trying to use Dynamo to use the “Pin” tool on certain elements which I don’t want people to accidently move. However, I don’t find any such node available or maybe I didn’t search too well. Is there such a node or maybe someone can help me with a python script because I am sure there exists a way to do this.

---

<div class="post-metadata">

**Author:** ![Brendan\_Cassidy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/brendan_cassidy/32/7685_2.png) [@Brendan\_Cassidy](https://forum.dynamobim.com/u/Brendan_Cassidy)\
**Post date:** [December 25, 2015, 5:11pm UTC](https://forum.dynamobim.com/t/pin-unpin-revit-elements-using-dynamo/2792/2 "2015-12-25T17:11:35Z")

</div>

Nice Christmas present for you 🙂 . Within the attached dynamo script their should be a python node that automatically pins all inputted elements, I have put the output to say that it is done and to resend out the elements for further use if needed. Pin all inputted elements

---

<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 25, 2015, 8:45pm UTC](https://forum.dynamobim.com/t/pin-unpin-revit-elements-using-dynamo/2792/3 "2015-12-25T20:45:03Z")

</div>

There’s also a node in Rhythm called “Element.SetPinnedStatus” true will pin and false will unpin.

---

<div class="post-metadata">

**Author:** ![Brendan\_Cassidy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/brendan_cassidy/32/7685_2.png) [@Brendan\_Cassidy](https://forum.dynamobim.com/u/Brendan_Cassidy)\
**Post date:** [December 29, 2015, 8:35am UTC](https://forum.dynamobim.com/t/pin-unpin-revit-elements-using-dynamo/2792/4 "2015-12-29T08:35:34Z")

</div>

I actually thought I had rhythm installed and is probably why i couldn’t find it, then noticed i have it for dynamo 0.9.0 but not for my 0.8.2 install(doh).

&nbsp;

Anyway I have done a quick update to the script to include a toggle for pinning/unpinning, so it should fulfil the topic question 🙂

&nbsp;

[Pin all inputted elements v2](http://dynamobim.org/wp-content/uploads/forum-assets/brencass89hotmail-com/12/29/Pin-all-inputted-elements-v2.dyn)

---

<div class="post-metadata">

**Author:** ![Viraj\_Voditel1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/viraj_voditel1/32/17254_2.png) [@Viraj\_Voditel1](https://forum.dynamobim.com/u/Viraj_Voditel1)\
**Post date:** [December 29, 2015, 10:29am UTC](https://forum.dynamobim.com/t/pin-unpin-revit-elements-using-dynamo/2792/5 "2015-12-29T10:29:08Z")

</div>

Thank you very much for your replies. Solved the purpose well and good.

---

<div class="post-metadata">

**Author:** ![dynamo\_den](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dynamo_den/32/70573_2.png) [@dynamo\_den](https://forum.dynamobim.com/u/dynamo_den)\
**Post date:** [August 2, 2019, 1:59am UTC](https://forum.dynamobim.com/t/pin-unpin-revit-elements-using-dynamo/2792/6 "2019-08-02T01:59:11Z")

</div>

@john_pierson

Super handy! 🙌
