Automating Section Views of an Element

In order to get both the ‘front’ and ‘back’ of the door elevation, you will have to input two sets of vectors into the “Create Element View_Spectech” node.
In the ‘get local principal vector’ group, you can try to create 2 lists of local vectors that indicate the section views. For example,"+x, +z" would indicate a front elevation; “-x, +z” would indicate a back elevation.

@msol @Tom_James

Hey msol,

So, I’m not quite sure I have the Dynamo knowledge to do what your asking me to do. The majority of the above script is me piecing together existing Dynamo workspaces/help from forums as the vectors have been giving me problems.

Im not quite sure how to define -x, +z to my rear elevations, and +x, +z to my front elevations. Any help would be much appreciated. I have attached the file/custom node here in hopes that someone can open it up and have a look to better help me out here as this is super frustrating for me as a new user!

*** Still having the same issues as my first post ***

Create Element View_Spectech.dyf (39.0 KB)
Door Elevation Workspace.dyn (43.7 KB)

1 Like

Hi please see if the images below can help you resolve.

Also, as shown, I have added an extra node “Geometry.Explode” to the dyf by _spectech to make it work. You can double-click the Create Element View node to edit that.

1 Like

If you haven’t seen yet Dieter vermeulin has recently written this blog post https://revitbeyondbim.wordpress.com/2017/02/10/element-view-generation-in-revit-with-dynamo-revised/#comments

@Elton_Williams

Ya, its where I was able to get alot of information from in my first go at this script solo. I had another post in which a lot of discussion was had (over 20 posts), and so I started this thread to pick up from that discussion, but on a fresh board so people didnt have to scroll through 20 posts to get all the information needed to help. But ya, I did go through this and it helped a lot… almost there now, just 1 last thing to fix thanks to @msol

@msol

OMG! Thank you so much, you have fixed one of my issues I was having (see picture #1 below). After fiddling around with some of the boundry offsets, I was able to get it looking ALMOST perfect!

Issue #2 I am still having problems with - my bottom crop region.

All my crop region offsets are perfect except for the bottom crop. As shown in picture #2 below, it shows WAY below the floor, and we do not place any devices below slab. Is there a node that can be used in which you can plug in the created views and adjusted the bottom crop region of the views created when script runs? Or any alternative way in which Dynamo will raise the bottom crop region up to mid way through the floor (as shown in picture #3 below)?.

If I can figure how to do that, this workspace would be perfectly complete!

Picture #1: My Floor Plan View = PERFECT NOW! THANK YOU

Picture #2: My Section Views Currently = Too much show below the floor

Picture #3: How I want my section views to look

Hi Rob,

I think that @Elton_Williams meant to say that @Dieter_Vermeulen posted an updated version.
He added a new section (doors and windows) to his “element-view-generation” workflow.
it can be downloaded at the link provided by Elton Williams, but you also need to update the BIM4Struc_Productivity package.

I haven’t tested it yet, but i think it has a little bug (inside the “Create Element View” node).
If the doors have an angle other then 0, 90, 180, 270 or 360 degrees, (i think) it won’t create correct views.
For those who are interested see this topic.

Kind regards,
Mark

^ yes i did. Thanks for the link too

Hi
@MJB-online, @Elton_Williams , @msol, @RAllan

I just did a test on the orientation of the Doors. A wall that is oriented at, let’s say, 8° to the North, doesn’t give a problem anymore. There had been some problems in updating the BIM4Struc.Productivity package on the Package Manager. Which should be solved now.
The latest working version is 1.2.7.
Let me know if there is still an issue with it.

Concerning the crop region: the package only allows one offset for all sides. But it should be easily possible to add a new input and connect it to the right coordinates of the section view, to make it different. I’ll note that for improvements for another version.

Best regards,
Dieter Vermeulen
Tech. Sales Specialist AEC - Computational Design & Engineering
Autodesk, EMEA NE

Hey @Dieter_Vermeulen @MJB-online @Elton_Williams @msol,

Ya i did notice the updated version yesterday, problem is, its at about the same point of my script (where as it creates the views I need, etc), but that bottom crop region is still giving me an issue. I decided to just keep going with the workspace I had as it was already 90% set up to my needs (creates the 2 views I need, names them how I need), I just now need to figure out how to take those generated views, and raise the bottom crop region so that its just below the door.

Since i only needed to figure out the bottom crop region, I just decided to stick it out with my workspace and hope to find the workaround to fix my 1 issue.

Hopefully Dieter adds something to that workspace to adjust crop sizing after views are made, or someone comes up with a way to do so, as everything I’ve attempted has seen no results :’(

Hey again, @Dieter_Vermeulen @MJB-online @Elton_Williams @msol,

Am i even going in the right direction? I found the node’s View.GetCropBoxCurves and View.SetCropBoxCurves and have been trying to play around with them. I have gotten the curves of each view, as well as the start and end points for each view, but I am still not sure how to manipulate these numbers to do as I want (which is to raise the bottom crop region to just below the door).

Am i on the right path in figuring this out (see picture below), or do these nodes not do what I think they do?

Hey @RAllan @MJB-online @Elton_Williams @msol

This is exactly what these nodes are doing. You can find more about their use on this tread: Edit crop region

It’s not included in my workflow / blogpost, but what I would suggest is to get the curves, do some list management magic to translate the bottom curve, create a new polycurve from its intersections and the existing curves and then feed the exploded polycurve to the “…Set Curves”

[edit] now I see that you’re on that referred tread too already :smiley:

Cheers,

Dieter

Hey @Dieter_Vermeulen @MJB-online @Elton_Williams @msol,

Well looks like I have some playing around to do. All of the above is pretty new to me so will just have to wing it and hope for the best. Not sure how to figure out which curve is associated to the bottom, and also not sure how I go about modifying that bottom curve through nodes.

Guess Ill just have a whirl and hopefully it starts making sense as I go through nodes and such.

Any additional help/workspace pictures of help would be much appreciated. I feel like this part is out of my league in terms of my Dynamo Skill/Experience.

Been fooling around with this for the past 2hours or so. I was able to adjust the #'s of each the x/y/z on the start and end point using the Geometry.Translate node, but it didnt end up doing anything to the crop region of my views. I even did it to the extreme where I inputted -100,000 into each the x/y/z, and plugged that into the View.SetCropBoxCurves, and it still didnt move my crop region (even though when looking at the watch node, each the x/y/z moved by -100,000).

A bit stumped, not sure what the hell im doing wrong!

Hi Rob,

Maybe the below files do what you would like them to do :slightly_smiling_face:
I added some sliders to set the top, bottom and side offsets before the views are created.
There is also a slider to adjust the position of the section.
Create Element View_modified v06.dyf (59.0 KB)
Doors_Front and Back View Generation v06.dyn (54.8 KB)

Kind regards,
Mark

5 Likes

WOW @MJB-online,

Amazing work!!! It does exactlyyy what I was looking for in terms of the sliders.

Next up to take this script to the next level is to have all these created views populate on sheets for me as they are created (with equal spacing). Will have to do research and see what I can come up with on my own, and from there, post a new topic to get the ball rolling on that part of this workspace :slight_smile:

thank you again for all your work on this matter, would never have gotten this far without you! I think its at the point where I am happy with the workspace doing as I need it to do!

Where does one find the element.localcoordinatesystem node? Not included in 1.3.1 and I cannot locate it in the packages or on git.

Hi Chris,

It is included in the “BIM4Struc.Productivity” package.

Kind regards,
Mark

2 Likes

Thanks Mark

Hello thanks for the amazing script. I cannot get this script work for the walls instead of doors and what do I need to change to elevations instead of sections

It would be good practice to start a new thread with a screenshot of your graph where we can clearly see the issues you mentioned. You can add a link to this thread this way if needed:
Share-a-link-to-this-post
Thanks :slight_smile:

1 Like