# Auto Dimension electrical socket to nearest wall

**URL:** <https://forum.dynamobim.com/t/auto-dimension-electrical-socket-to-nearest-wall/38060>\
**Category:** Revit\
**Created:** [July 8, 2019, 2:25pm UTC](https://forum.dynamobim.com/t/auto-dimension-electrical-socket-to-nearest-wall/38060 "2019-07-08T14:25:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee.hanrahan](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@lee.hanrahan](https://forum.dynamobim.com/u/lee.hanrahan)\
**Post date:** [July 8, 2019, 2:25pm UTC](https://forum.dynamobim.com/t/auto-dimension-electrical-socket-to-nearest-wall/38060/1 "2019-07-08T14:25:53Z")

</div>

I am looking to try find a way to do a script that would auto dimension the centre line of an electrical element to the nearest opening or wall, but not sure where to start does anyone have any ideas,

cheers
