Issue with Cross Slope Calculation in Dynamo Using LandXML Surface in Civil 3D

Hello everyone,

I’m trying to calculate the cross slope using Dynamo. I have an alignment and a surface, and my approach is as follows: three points are projected onto the surface ; one in the middle, one on the left, and one on the right. Then, the slope on the right and the cross slope on the left are calculated as percentages.

The issue I’m facing is that when I create the surface using points in Civil 3D, everything works fine. However, as soon as I import a surface as a LandXML file, I get an error message. So far, I have no idea what’s causing this issue.

Could someone help me with this?


Hi @sinik,

Can you confirm that Dynamo’s geometry scaling setting is set to Medium?

Hi @zachri.jensen
i changed it to max but it doesnt work.
i can share the file if you want

The geometry scaling should be left on Medium to avoid potential issues like this one. Can you try that and confirm?

still have the same problem.

OK, if you can share the DWG I can take a look. Feel free to DM me if you like.

Also, which version of Civil 3D are you using? You can just upload a screenshot of running the ABOUT command.