Hey guys,
I’m new here and looking forward for getting nice help in this community.
I need do automate the fine grid of a drywall ceiling with following conditions that you can see on the picture:
- the start and the end of a frame keeps 40 mm each distance to the walls
- the axis of a frame is 70 mm next to a wall (end-frames)
- the distance between two regular frames is 312.5 mm, but if it gets too close to an end-frame to fit, it is built between its previous frame and the endframe. I call it mf for “middle-frame”, so IF d <372.5 AND d>312.5 the last regular-frame needs to be cut and be replaced by a middleframe
Here is a sketch to that:
https://tmausbau-my.sharepoint.com/:i:/g/personal/nestler_tm-ausbau_eu/EUDgMOc7dYRBopeaQ83tZYsBXLDFD8IcGBGtd74HvOk5jA?e=PDBkmo
This is how I tried to solve this:
I select a ceiling in REVIT, get its perimeter curves, their normal vectors to check which ones are parallel to the mounting direction and which ones are parallel to the start arrow (in my picture).
Now I try to get a new smaller polygon by moving the perimeter curves, but depending on the room’s shape the order of the polygon is horrible, sometimes fits - How can I solve this problem?
Then I search the startpoint and via “Curve.PointsAtSegmentLengthFromPoint” and “Line.ByStartPointDirectionLength” I put the regular-frames.
With a little bit of maths and ifs I’m able to handle the middle-frame at the end of the regular-frames, but not in the middle, as you can see by the red line on my picture. How can I get fixed that?
Here you can have a look at my Dynamo:
https://tmausbau-my.sharepoint.com/:u:/g/personal/nestler_tm-ausbau_eu/EZ0jePySI6hCrykKd0K3q7kB4_yW1a--HzIfhPWO33fK3Q?e=q7LedG
Upcoming questions:
Curved Walls, more edges, or recesses like colums or shafts?
Thank you and have a nice day,
Thomas