Family not perpendicular to path

Hi,

I have path and profile exported from Civil3D in Excel sheet.

I’m trying to import this path in Revit adaptive family and place family instances by coordinate system along this path. Here I’m facing orientation issue.

In Dynamo coordinate system looks fine but in Revit is strange… In Revit project is again with wrong orientation. Any ideas? I’m attaching all my resources to test.

Т01_1.rfa (436 KB)

AlignmentImportLocal.dyn (106.1 KB)

AlignmentExtract.xlsx (10.3 KB)

EDIT: If you are going to test it, change rotation input to 0.

Looks initially like you need to reference the path Curve.NormalAtParameter direction to apply the correct Normal to the CoordinateSystems you are creating for the instances.

If that doesn’t help, try creating the CoorindateSystems first then the Curve references within them instead of transforming.

If I try to create Point.ByCartesianCoordinates instead of FamilyInstance.ByCoordinateSystem, they are completely fine.

Without FamilyInstance.SetRotation everything is working fine. Im rotating coordinate system before placement.

Are you question about how to model Linear structures (Bridge and tunnel) in revit?

Bugger, haven’t installed Revit 2026 yet :zany_face: can’t open the family.

I have replicated what I think is your intent in Revit 2025 with a basic adaptive family.

Your code seems to work ok.

Have you checked within your family that the appropriate geometry has been drawn in the appropriate WorkPlane?

I have already found the issue. FamilyInstance.SetRotation was the trouble. Without it, script is working fine.