You are only getting 104 points out, so something is going wrong there…
Maybe this is a clue? If the conversion to polysurface is missing some of your topo?
Perhaps have a fly around in dynamo and see what you’re getting? If you right click on the other nodes and unclick ‘preview’ you should be able to just see the returned geometry from that node…
I believe this may in fact be the issue with the Z translations.
Will try to figure it out…
I don’t think it is a Revit 2019 specific issue. The topo is just a random toposurface with some negative and some positive height values. Surely it’s the same in 2017, 2018, etc.
Ok so there are only a few things left:
1st. Since the normals of some the polycurves are flipped you need to use that node:
for the extrusion so you can give it a vector for direction. Otherwise you will have some of the buildings extruded downwards.
2nd. I turned the polycurves to polygons so I can use the polygon center point for the calculation of the height.
3rd. The CAD file is positioned in the middle of the toposurface so you need to filter which of the buildings you would need to move up to meet the toposurface and which of them you need to move down.
@Mark.Ackerley
Nope, everything worked fine for me with the exception that a few curves did not extrude. As I stated above we need to make sure the footprints are extruded in the positive direction and then we need to filter which solids should we move UP and which ones whould we move DOWN to match the topo.