Rotate section view, created by boundingbox, in multiple directions

Goodday Dynamo users,

I’m currently trying to generate section views by input coordinates which doeswork.
Afterwards i try to rotate those views by using a python script.

When i use the node select model element the used python script works.

But when i use the node SectionView.ByBoundingBox it crashes.

Any ideas on how to solve this?

Thanks in advance!

It is because of loop the elements node.

You should add a loop in transaction begin. Like that:
For e in section:

I can give you that tip, so you can do it by yourself and learn more.

1 Like

@Deniz_Maral Thanks, but i think i found the origin of the error.

The view created by the boundingbox is not visible in the active view.
i use: Revit.Application.Document.Current.ActiveView in python to create a boundingbox from the active view.

Now i’ve come to the conclusion that the created section view is not visible in any other view.
So there is no active view which i can use to create a bounding box.

Any ideas to work around that one?

What I read from error message, it is a looping error. Can you pass the first element of SectionView.ByBB vie x[0] codeblock?

@Deniz_Maral Like this?

Like that, I meant:


Then connect it to IN[0]