Bimorph node CAD.CurvesFromCADLayers

hi!

I have issues with the Bimorph package these days. This node named CAD.CurvesFromCADLayers is driving me crazy and seem to be unstable :frowning: I’m using revit 2021 and have updated the package from Bimorph (4.0.7).

I get the message: “Warning: Internal error, please report: Deferencing a non-pointer

Does anyone have a solution for this? Seems to work in revit 2020…

Whats the exception? Share your CAD file and graph if you can.

I’ve found the culprit - its an index out of range exception if the lineStyleMap input is provided with a different number of line style names to the number of layers in the CAD file. The node needs both lists to match - and it does this internally if they dont - but the match algorithm has a bug which drops the last item from the list and this generates the bug. Download version 4.0.8 from the Package Manager for the fix.

Thanks @Thomas_Mahon ! Now it works as expected:)