I’ve made a script from reading through this link (many thanks to Dieter) to create section views as plans at family instances. These families are modeled as manholes with ‘always vertical’ checked, so when i host it to a slab it stays vertical.
I just tested it on a sample project which i made with a varying slab and several manholes at different levels and it worked perfectly.
I then went onto a live job and for some reason some views couldn’t be created returning a null value. It seems that any family where the yaxis and zaxis xyz all equal 0 aren’t created.
Is this something i have done wrong in revit or dynamo? Thanks in advace, i’m still trying to get my head around all this.
Below is the node values for the CoordinateSystem.ByOriginVector node:
Also, in line [0] you can see that the YAxis = Vector has xyz coordinates that aren’t a whole number, meaning the section that is created is on a slight slant. Is there any way to fix this?