Civil engineering feature implementation (Transportation Engineering)

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by HakanSeven12 »

thschrader wrote: Wed Jun 24, 2020 3:19 pm Works! :)
Good ;)
thotbuilds
Posts: 2
Joined: Tue Oct 06, 2020 7:23 am

Re: Civil engineering feature implementation (Transportation Engineering)

Post by thotbuilds »

Hi All,
First of all thank you for the creators and contributes of this work bench. I am fairly new to free cad and have zero knowledge of python. I have been using linux on and off for about 9 years now though. All these things aside, I am trying to get OSM terrain details ( or any other terrain details like google or SRTM) of a specific co-ordinates for my architecture model. but trials work bench returns the below error. Using Freecad 0.19 appimage daily build. Could some one help me out tho get this thing working ?

13:06:25 Traceback (most recent call last):
13:06:25 File "/home/ekokynesis/.FreeCAD/Mod/freecad.trails/freecad/trails/GeoDataWB/import_heights.py", line 143, in runbl
13:06:25 import_heights(float(b),float(l),float(s))
13:06:25 File "/home/ekokynesis/.FreeCAD/Mod/freecad.trails/freecad/trails/GeoDataWB/import_heights.py", line 94, in import_heights
13:06:25 res=run(b,le,b,le +ld*0.001,size)
13:06:25 File "/home/ekokynesis/.FreeCAD/Mod/freecad.trails/freecad/trails/GeoDataWB/import_heights.py", line 49, in run
13:06:25 baseheight=getheight(tm.lat,tm.lon)
13:06:25 File "/home/ekokynesis/.FreeCAD/Mod/freecad.trails/freecad/trails/GeoDataWB/import_heights.py", line 34, in getheight
13:06:25 response = request.urlopen(source)
13:06:25 File "/tmp/.mount_FreeCAR6M2Kc/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
13:06:25 return opener.open(url, data, timeout)
13:06:25 File "/tmp/.mount_FreeCAR6M2Kc/usr/lib/python3.8/urllib/request.py", line 531, in open
13:06:25 response = meth(req, response)
13:06:25 File "/tmp/.mount_FreeCAR6M2Kc/usr/lib/python3.8/urllib/request.py", line 640, in http_response
13:06:25 response = self.parent.error(
13:06:25 File "/tmp/.mount_FreeCAR6M2Kc/usr/lib/python3.8/urllib/request.py", line 569, in error
13:06:25 return self._call_chain(*args)
13:06:25 File "/tmp/.mount_FreeCAR6M2Kc/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
13:06:25 result = func(*args)
13:06:25 File "/tmp/.mount_FreeCAR6M2Kc/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
13:06:25 raise HTTPError(req.full_url, code, msg, hdrs, fp)
13:06:25 urllib.error.HTTPError: HTTP Error 504: Gateway Time-out
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by HakanSeven12 »

Import height not working but bernd working on it
bernd wrote: Fri Sep 18, 2020 1:22 pm @Joel_graff:

would you accept a PR which renames GeoDataWB to geoimport?
Do you have any progress on this?
baswein
Posts: 21
Joined: Mon Aug 26, 2019 4:26 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by baswein »

@thotbuilds
I too am really excited about this workbench but If you can't get it to work I have had fairly good luck with BlenderGIS the first 5mins of this video goes over it https://www.youtube.com/watch?v=Mj7Z1P2hUWk you should then be able to export it as an .obj and bring it into freecad. Of course you might end up with a lot of scaling and alignment issues. If you use .ifc files you could look into using blenderbim to export it from blender as an .ifc with geographic data. It might come in right then. The OSArch forum would probably be happy to help you figure that out. https://community.osarch.org/discussions
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Joel_graff »

Doing a little housekeeping on Trails. Geotechnical code has been moved to the 'geomatics' folder. @HakanSeven12 may want to test to ensure it's working properly.

Pull from the 'restructure' branch (not 'dev')
HakanSeven12 wrote: ping
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
y_skific
Posts: 8
Joined: Mon Oct 19, 2020 4:56 pm
Location: France

Re: Civil engineering feature implementation (Transportation Engineering)

Post by y_skific »

Hi Joel,

I'm also a civil enginer working in trackworks for 30 years now.
And just like you, i'm a bit disapointed by the leading Alignment softwares from Bentley or AutoDesk.
I just discovered FreeCAD, it's amazing capabilities, and the workbrench you are working on.

I went through a developement of an Alignment Editor a few years ago, you can see some swf demos just here: http://linea-trace.blogspot.com/

I still have the alignment object structure i wrote at that time and it was pretty stable, i re-worked on it last year to add a LandXML parser.

I was wondering if i could help i any way.
thschrader
Veteran
Posts: 3156
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Civil engineering feature implementation (Transportation Engineering)

Post by thschrader »

What must I do to mesh the points?
I updated trails-wb yesterday.
file (rename txt-extension to asc):
Bunny_asc.txt
(10.87 KiB) Downloaded 38 times
Error:

Code: Select all

09:41:38  Traceback (most recent call last):
09:41:38    File "C:\Users\thomas.schrader\AppData\Roaming\FreeCAD\Mod\trails\freecad\trails\surface\CreateSurface.py", line 183, in CreateSurface
09:41:38      nbase = utils.rendering_fix(base)
09:41:38  AttributeError: module 'freecad.trails.project.support.utils' has no attribute 'rendering_fix'
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22284 (Git)
Build type: Release
Branch: master
Hash: bf1e8e48389f5e9e25bd77b67fe98da4213e797c
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
bunny_mesh.JPG
bunny_mesh.JPG (59.54 KiB) Viewed 1286 times
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Joel_graff »

y_skific wrote: Mon Oct 19, 2020 5:16 pm Hi Joel,

I'm also a civil enginer working in trackworks for 30 years now.
And just like you, i'm a bit disapointed by the leading Alignment softwares from Bentley or AutoDesk.
I just discovered FreeCAD, it's amazing capabilities, and the workbrench you are working on.

I went through a developement of an Alignment Editor a few years ago, you can see some swf demos just here: http://linea-trace.blogspot.com/

I still have the alignment object structure i wrote at that time and it was pretty stable, i re-worked on it last year to add a LandXML parser.

I was wondering if i could help i any way.

I'll take a closer look at what you developed. I've really only developed things just enough to work for my purposes, so I've no doubt there's a number of shortcomings. Always happy to have additional help, though I think this task might be a bit daunting for most folks to get involved. :)

All the same, whatever you feel like contributing,, I'm certainly open to it.
Last edited by Joel_graff on Sat Oct 24, 2020 3:14 pm, edited 1 time in total.
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Joel_graff »

thschrader wrote: Thu Oct 22, 2020 7:48 am What must I do to mesh the points?
I updated trails-wb yesterday.
file (rename txt-extension to asc):
I'll take a closer look. @HakanSeven isn't really able to spend time supporting it and I really don't know anything about the code he wrote, but I'll see if I can sort through the issue.
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by HakanSeven12 »

Joel is right. But I made a fix and I can't test. I hope it will works.
Post Reply