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.

Thanks, @zachri.jensen My script is now working without any issues.

However, I still have a question.
I’m also ready to share the script with you all.

The problem is that I’m using Dynamo to calculate slopes on the left and right. In Dynamo, I extract the elevations from the surface and then calculate the slopes. To verify the results, I created a few sections in Civil 3D and calculated the slopes there as well. But I’m noticing a discrepancy between the two methods, and I can’t figure out why.

Does anyone have an idea what might be causing this issue?