# Move SectionView with given vector

**URL:** <https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [June 4, 2026, 10:35am UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732 "2026-06-04T10:35:52Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![fernandezP7VN2](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@fernandezP7VN2](https://forum.dynamobim.com/u/fernandezP7VN2)\
**Post date:** [June 4, 2026, 10:35am UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732/1 "2026-06-04T10:35:52Z")

</div>

Hi,

I’m having trouble moving sections bij a given vector. I’m making a script that duplicates a selected sectionview from a floor plan, and I’d like to move it as well by a given vector. This however gives every time Errors.. Anyone that can help?

Nico

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 4, 2026, 11:05am UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732/2 "2026-06-04T11:05:13Z")

</div>

Hello @fernandezP7VN2 and welcome to the forum 🙂 not 100 what you want exackly, can you show your graph, what you have tried so far ? one way maybe but not sure if it is you are after or more move the crop view maybe

![Revit_XUjI0J4sLc](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/f/2f89984ed3c8ada069a4b0b36b8dd10122e1cce4.gif)

---

<div class="post-metadata">

**Author:** ![fernandezP7VN2](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@fernandezP7VN2](https://forum.dynamobim.com/u/fernandezP7VN2)\
**Post date:** [June 4, 2026, 12:36pm UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732/3 "2026-06-04T12:36:43Z")

</div>

Yes this is what I want, but to then move the section in perpendicular direction. The problem I’m having still is that I don’t have the SOVI nodes, so I don’t know how to get the section line locations.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 4, 2026, 12:42pm UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732/4 "2026-06-04T12:42:34Z")

</div>

which revit version are in, if in 24 and guess 25 as well you can get location from genius loci get location node…but in 26 i dont think it works

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 4, 2026, 1:03pm UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732/5 "2026-06-04T13:03:54Z")

</div>

but we can get the location with the view itself, with get the far clip offset handles as should be in center…thats how my dirty method works 😉

---

<div class="post-metadata">

**Author:** ![fernandezP7VN2](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@fernandezP7VN2](https://forum.dynamobim.com/u/fernandezP7VN2)\
**Post date:** [June 4, 2026, 1:20pm UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732/6 "2026-06-04T13:20:09Z")

</div>

Hmm okay. Essentially what I’m trying to do is to select a grid in Dynamo (lets say A) and get the corresponding sectionview with the name A. I also have a selection of other grids that are parallel to grid A and I want to duplicate view A, rename them to the corresponding grid they are going to and also move them in that direction with the corresponding distance.

Do you follow? 😅

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 4, 2026, 1:23pm UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732/7 "2026-06-04T13:23:20Z")

</div>

no not really, can you show your graph so far, and could probably bring light to my small brain 😉

---

<div class="post-metadata">

**Author:** ![fernandezP7VN2](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@fernandezP7VN2](https://forum.dynamobim.com/u/fernandezP7VN2)\
**Post date:** [June 4, 2026, 1:32pm UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732/8 "2026-06-04T13:32:50Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/c/3cf215b4e3e31c4a6f372a678a771cefb9d92fd1.png)

---

<div class="post-metadata">

**Author:** ![fernandezP7VN2](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@fernandezP7VN2](https://forum.dynamobim.com/u/fernandezP7VN2)\
**Post date:** [June 4, 2026, 1:37pm UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732/9 "2026-06-04T13:37:42Z")

</div>

So what I want is to select grid A and also select all other grids that are parallel. I then want the section with the same name as the grid to duplicate, move to one of the other grids and be named the same as the grid it is going to

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/b/db457df2e502ef99493c020d6f71accf88e97908.png)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 4, 2026, 1:40pm UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732/10 "2026-06-04T13:40:27Z")

</div>

thanks but try zoom in the image [How to export a graph image [Correctly]](https://forum.dynamobim.com/t/how-to-export-a-graph-image-correctly/99364) and share your python script…anyway how then just create a section and give it that name…

---

<div class="post-metadata">

**Author:** ![fernandezP7VN2](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@fernandezP7VN2](https://forum.dynamobim.com/u/fernandezP7VN2)\
**Post date:** [June 4, 2026, 2:07pm UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732/11 "2026-06-04T14:07:47Z")

</div>

Yeah I know, but having this I could use it in any project I start, and I won’t be needing to rename it every time and give it the right View Template.

---

<div class="post-metadata">

**Author:** ![fernandezP7VN2](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@fernandezP7VN2](https://forum.dynamobim.com/u/fernandezP7VN2)\
**Post date:** [June 4, 2026, 2:10pm UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732/12 "2026-06-04T14:10:49Z")

</div>

![04_Doorsneden maken tpv grids_R25_2026-06-04_04-09-17](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/9/d9302e3544ff0aa10d73967b53b6bf5c3bb3e0dc.png)

and Python node is:

```python
import clr

clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import \*

refGrid = UnwrapElement(IN\[0\])
grids = UnwrapElement(IN\[1\])

if isinstance(refGrid, list):
    refGrid = refGrid\[0\]

# -------------------------------------------------
# Referentie
# -------------------------------------------------
refCurve = refGrid.Curve
refPt = refCurve.Evaluate(0.5, True)

gridDir = refCurve.Direction.Normalize()

# Loodrechte richting in XY
normalDir = XYZ(-gridDir.Y, gridDir.X, 0).Normalize()

# -------------------------------------------------
# Bepaal dominante as (X of Y systeem)
# -------------------------------------------------
absX = abs(gridDir.X)
absY = abs(gridDir.Y)

if absX > absY:
    dominantAxis = "X-aligned grids -> offsets in Y"
    axisMode = "Y"
else:
    dominantAxis = "Y-aligned grids -> offsets in X"
    axisMode = "X"

# -------------------------------------------------
# Outputs
# -------------------------------------------------
names = \[\]
signedDistancesMM = \[\]
vectorsMM = \[\]
axisType = \[\]

for g in grids:

    pt = g.Curve.Evaluate(0.5, True)

    vec = pt.Subtract(refPt)

    # signed distance (loodrecht op grid A)
    signedDistanceFt = vec.DotProduct(normalDir)
    signedDistanceMM = signedDistanceFt \* 304.8

    # vector mm
    vecMM = XYZ(
        vec.X \* 304.8,
        vec.Y \* 304.8,
        vec.Z \* 304.8
    )

    # bepaal of beweging X of Y dominant is
    if axisMode == "X":
        axis = "X"
    else:
        axis = "Y"

    names.append(g.Name)
    signedDistancesMM.append(round(signedDistanceMM, 1))
    vectorsMM.append(vecMM)
    axisType.append(axis)

OUT = names, signedDistancesMM, vectorsMM, axisType, dominantAxis

```

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [June 5, 2026, 2:52am UTC](https://forum.dynamobim.com/t/move-sectionview-with-given-vector/114732/13 "2026-06-05T02:52:38Z")

</div>

Hi @fernandezP7VN2 probably me, but couldnt just create the sections work then  
 ![Revit_GmsRISBizx](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/4/e4bacbe0a8030228bd364c35227b0d012af1e245.gif)

 ![Skærmbillede 2026-06-05 044954](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/1/61b939696dd8879a79a343f60c04439069772c88.png)
