Offset Polycurve based on Set Out Point / Floors from CAD curves

I’m trying to build a definition that extracts CAD layers for the outline of a floor layout. I need each floor outline curve to offset inbound towards the middle of the room by same 10mm. Then I want to combine the polycurves to generate floors in revit. Extracting the cad layers and generating the floors from curves is not a problem, it is offsetting the floor boundaries by 10mm inbound which is proving the obstacle, and then how these lines can be joined as polycurves to generate the floors.

I am having real difficult getting the off set to work. I extracted the set out point from the cad file and retrieved an intersection, which I was hoping could be used as a reference point in the “Springs.Curve.Offset” but don’t know how to get this to work.

Any help much appreciated. My WIP definition below -

Hi @kongGBK9K

Could you show preview for each nodes and errors expanded.

@kongGBK9K Seeing the 3D preview of the curves, with that line in between the larger outline, my guess would be that these need to be two separate floors. If you tried to sketch in Revit a floor outline with that line down the middle, it would not work, so I think that might be what is happening here.

1 Like

If you group the curves into polycurves and then offset by -10 it should offset inwards. Loose curves have a normal problem and offset erratically. Polycurves don’t.

That said your CAD files may not have been built to allow easy polyline creation so you may still have an issue.

Thanks for the replies. I was trying to use the offset function to over come the fact that the received cad file had over lapping floor boundaries, but I guess the answer is to instruct the drafter to not draw the original cad with overlapping boundaries. I am trying to do a similar operation with glazed roofs but can’t seem to find the node in the package manager. ‘Roof by outline type and level’ seems to be missing. Any idea which package this should be in? I am using dynamo 1.2.

Sorry for a very delayed reply @kongGBK9K

It is an OOTB node: Dynamo Dictionary

1 Like