I need help regarding a Dynamo script for Civil 3D 2025 to solve the case of Offsetting COGO points in a group relative to a multi-sectional polyline. I hope to get assistance and feedback for this script case. Thank you. I need Help
could you share a sample/test file
Sorry, I can’t send the file, does anyone know why? It says here that new users cannot send files.
By default new users cannot upload anything to prevent spam and forum misuse. I’ve updated your trust level so you should be able to post minimal files (i.e. a dwg with only what you need, not a complete project). Give it 5-10 minutes you should be able to upload, and if not reset your browser cache and try again.
Here I am sending an example file. If you don’t mind, I need a script outline to help me. Doing it manually with Cogo point offsets takes a lot of time. Hopefully someone can help and provide the right solution for me. Thank you.
Sample File to Dynamo C3D 2025.dwg (1.5 MB)
Thank you very much, sir. This really makes things easier for me in forums and my interest in Dynamo. I believe automation is very helpful for some cases.
Sample File to Dynamo C3D 2025.dwg (1.5 MB)
Hello,
If you already have the cross lines, the script could be:
1. Select all your polylines (Select.Objects)
2. Get geometry from step1, pull the geometry on XY plane (to skip/exclude the Elevation you’ve assigned to polylines)
3. Select One Cross line (Select.Object)
4. Get the layer of the step 3 object; get all objects on this layer
5. Get the geometry of step 4
6. Get intersections (Geometry.Intersect), where geometry is step 2, other is step 5. Make the Lacing - Cross Product
7. Flatten the List (step6) by “-1”, Clean the list (preserve Indices – false)
8. Create Cogo Points By Geometry
If you don’t have cross lines, you have to create another polyline (or choose an existing one) as the main polyline to create perpendicular lines against, then get a point every 17 meters and create the cross lines
