For sure! Well I hope you mean the whole script itself Otherwise I’m really going to blabber on below.
The company I started working for does type schedules in a content phase prior to the existing phase to tag the element and use BIM qualities from it I’m guessing. So I thought this would be super fun to try automate! Just professing this by saying I have no degree in anything and learnt dynamo playing around for many a hours. So the ways I go about things arnt too practical but get the job done for varying instances.
1 = User inputs
2= Collect placed doors in the project, get unique and organizing by company door naming standard for the sheets and to number type marks if wanted. Which became more complicated then I thought with the company naming standard. Went for exterior doors first, then interior. Then inside of that fire doors or vision panels/kick plates first. Double doors are populating before single panel doors but I got sick of it Could actually use the family of the door to group that properly thinking now…
3= Gets the widths of the doors to space them out correctly and place them in a wall. The spacing required by this dictates how long the wall should be too and draws it for the doors to be placed in the right phase out from the project at the lowest level, testing on some projects there were a few coordinate issues to work through. Need the right node for the job. The wall height covers the door height and goes down below to allow room for the tag, this also dictates the view crop box height which is slightly cropped in from the wall to have clean edges.
4= Is where you smart fellas came in. The list of numbers is a point between each door. The input number is the max sheet length before the door needs to start at a new section on the sheet. Which accounts for horizontal and vertical sheet sizes. When I have those points. I draw a line and extrude it backwards to the point before it. Then do an intersection to get the crop box around each view. I’m pretty sure that’s whats happening.
5= With those view crop box curves I can create an elevation around each door set. This uses a method I found ages ago on the internet someone kindly wrote. Positions the point to the exterior side of the doors for the elevation marker. In my previous post you can see the points being worked out. Few extra points in there. Why I dono
6= Throwing down some tags after some needed transaction end nodes, naming some views and chucking things to the right phase.
7= Something I worked out awhile ago to handle just about all sheet number conventions. Basically works backwards on a sheet number to find something that’s not the number to understand the prefix and populate the right sheet numbers.
8= Figures out how many sheets to create and chucks the views on a sheet.
9= Dimensions the doors. I couldn’t figure out how to dimension to the actual element itself on edges I wanted and gave up. To hard basket. So just got the edges I wanted and draw detail lines to dimension to. Got the lines I wanted by bounding boxing a door. Reducing the percentage of the bounding box. Intersecting that with the door. This generally gave me the ouster door frame. Then intersected that with the rest of the exploded door parts to just get the leafs of doors lines. If it didn’t find one element for the outer frame. It would find the outer frame by intersecting the corner part of the original size bounding box. Then with the leafs, filter out frames and vision panels. Got a reasonable amount of lines to work out your overall and leaf dimensions. Not perfect but for the user to review after.
Gives you something like below. If something dosn’t make sense let me know or needs a better explanation let me know! Graph itself runs pretty fast considering how big it is too.