# Monocle FOCA / Node alignifier is giving unwanted node-alignments

**URL:** <https://forum.dynamobim.com/t/monocle-foca-node-alignifier-is-giving-unwanted-node-alignments/76121>\
**Category:** Packages\
**Tags:** dynamo\
**Created:** [May 3, 2022, 2:45pm UTC](https://forum.dynamobim.com/t/monocle-foca-node-alignifier-is-giving-unwanted-node-alignments/76121 "2022-05-03T14:45:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [May 3, 2022, 2:45pm UTC](https://forum.dynamobim.com/t/monocle-foca-node-alignifier-is-giving-unwanted-node-alignments/76121/1 "2022-05-03T14:45:48Z")

</div>

Hi everyone,

Using the monocle FOCA / Node alignifier tool, from the Monocle package, am I getting some weird results when trying to align nodes, in this case to the right. See my gif below:

![acad_ASQ7QvWrGk](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/4/145055027e0a61da1943a1e169569b9082f3a7da.gif)

I have actually been experiencing this bug for a while now on multiple machines and Dynamo versions (Sandbox, Revit, Civil3D). Is anyone else experiencing this bug and are the developers of the Monocle package aware of this bug?

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [May 4, 2022, 8:30am UTC](https://forum.dynamobim.com/t/monocle-foca-node-alignifier-is-giving-unwanted-node-alignments/76121/2 "2022-05-04T08:30:19Z")

</div>

Hahaha… looks like _nerdstuff_ 😉

I had this issue severial times, sometimes the window for aligning is not apearing.

how did you make the gif?

KR

Andreas

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [May 4, 2022, 8:32am UTC](https://forum.dynamobim.com/t/monocle-foca-node-alignifier-is-giving-unwanted-node-alignments/76121/3 "2022-05-04T08:32:32Z")

</div>

ShareX, great tool! Use it a lot

---

<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:** [May 4, 2022, 1:28pm UTC](https://forum.dynamobim.com/t/monocle-foca-node-alignifier-is-giving-unwanted-node-alignments/76121/4 "2022-05-04T13:28:41Z")

</div>

Yeah this came up a while back and I need to do some digging. Sadly this has been magnified in 2.13 as well because of pinned notes changing the NodeView size.

> <https://github.com/johnpierson/MonocleForDynamo/issues/19>
>
> \*\*Describe the bug\*\*
> The align tools provided by the plugin behave differently …to the OOTB align tools. In some cases the tool will move a node that is already aligned with the bounding box away from the edge. It appears that this occurs when the nodes are of different sizes such that the both edges of the node which should move are away from the edge of the bounding box. See GIF 1. When the smaller node defines the opposite edge of the bounding box to the alignment edge the behaviour is as expected. See GIF 2.
> 
> \*\*Steps to Reproduce\*\*
> Select multiple nodes of different heights (or widths depending on the direction of alignment), the node with the smaller dimension in the direction of alignment should not define either edge of the bounding box perpendicular to the direction of alignment, click align top/bottom/left/right
> 
> \*\*Expected behavior\*\*
> Expect similar to OOTB tools - behaviour is to align with the edge of the bounding box containing the nodes. See GIF 2.
> 
> \*\*My setup\*\*
> \- Operating System: Windows 10
> \- Dynamo version: 2.12.0.5650
> \- Monocle version: 2021.10.1.0
> \- Revit version: N/A dynamo sandbox
> 
> GIF 1 unexpected behaviour
> !\[unexpected behaviour\](https://user-images.githubusercontent.com/64306380/139475061-953e3f32-a957-418d-a22f-b3fe7a818149.gif)
> 
> GIF 2 as expected behaviour
> !\[as expected\](https://user-images.githubusercontent.com/64306380/139477063-6ab6003b-d6a6-4907-8320-8b5d4321426e.gif)
> 
> GIF 3 OOTB behaviour
> !\[OOTB behaviour\](https://user-images.githubusercontent.com/64306380/139475775-d57568d4-3506-4554-b8fe-fa2c194d2caa.gif)
