Forma Terrain to Civil 3D TIN Surface

@havardh what is the “pyproj” referenced in the script:
“from pyproj import transform”

@havardh Nevermind, I’ve got it:
https://pyproj4.github.io/pyproj/stable/index.html

1 Like

I am still not getting the Python script to import “transform” from “pyproj”, after installing git, adding scripts to the PATH and using Git BASH to install "py -m pip install “git+https://github.com/pyproj4”

1 Like

Did you follow this guide? Customizing Dynamo's Python 3 installation · DynamoDS/Dynamo Wiki · GitHub

I ended up with running .\Scripts\pip.exe install --target .\Lib\ pyproj from C:\Users\hoibyh\AppData\Local\python-3.9.12-embed-amd64\Lib

4 Likes

@havardh that is exactly what worked for me, too! Thank you!!

1 Like

I recommend this: How to install Python modules in Dynamo Core Runtime 2.8.0? - #54 by c.poupin

3 Likes

This works great for transforming a point. I have multiple PolyCurves that need to be transformed. My first idea was to go point by point and re-create PolyCurves but for that, I need to expand the Python code to process lists. Is there a way to transform a PolyCurve by its reference (Start) point?

That worked. Thank you!