Geotechnical Work Addon

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!
JellyPalm
Posts: 157
Joined: Sun Mar 29, 2020 12:22 am

Re: Geotechnical Work Addon

Post by JellyPalm »

.
Deleted users/...mod/Trails folder and re-cloned - Trails(alpha) WB appears in Workbench Drop-down but when opened:....
.
no Context Tracker.PNG
no Context Tracker.PNG (12.65 KiB) Viewed 1300 times
.
16:05:51 cannot import name 'ContextTracker'
16:05:51 Traceback (most recent call last):
File "C:\Users\Daz\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\init_gui.py", line 212, in Initialize
from .design.project.commands \ File "C:\Users\Daz\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\design\project\commands\edit_alignment_cmd.py", line 32, in <module>
from ..tasks.alignment import edit_alignment_task
File "C:\Users\Daz\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\design\project\tasks\alignment\edit_alignment_task.py", line 48, in <module>
from ...trackers.alignment_tracker import AlignmentTracker
File "C:\Users\Daz\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\design\project\trackers\alignment_tracker.py", line 32, in <module>
from freecad.trails import ContextTracker, PolyLineTracker, Drag


:!:
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Geotechnical Work Addon

Post by bernd »

fresh clone ...

Code: Select all

hugo@Ahorn:~/.FreeCAD/Mod$ git clone --recursive https://github.com/joelgraff/freecad.trails.git trails
Klone nach 'trails' ...
remote: Enumerating objects: 560, done.
remote: Counting objects: 100% (560/560), done.
remote: Compressing objects: 100% (301/301), done.
remote: Total 6718 (delta 318), reused 409 (delta 199), pack-reused 6158
Empfange Objekte: 100% (6718/6718), 4.77 MiB | 3.21 MiB/s, Fertig.
Löse Unterschiede auf: 100% (4574/4574), Fertig.
Submodul 'freecad_python_support' (https://github.com/joelgraff/freecad_python_support) für Pfad 'freecad_python_support' in die Konfiguration eingetragen.
Submodul 'pivy_trackers' (https://github.com/joelgraff/pivy_trackers) für Pfad 'pivy_trackers' in die Konfiguration eingetragen.
Klone nach '/home/hugo/.FreeCAD/Mod/trails/freecad_python_support' ...
remote: Enumerating objects: 142, done.        
remote: Counting objects: 100% (142/142), done.        
remote: Compressing objects: 100% (97/97), done.        
remote: Total 142 (delta 79), reused 82 (delta 40), pack-reused 0        
Empfange Objekte: 100% (142/142), 36.95 KiB | 491.00 KiB/s, Fertig.
Löse Unterschiede auf: 100% (79/79), Fertig.
Klone nach '/home/hugo/.FreeCAD/Mod/trails/pivy_trackers' ...
remote: Enumerating objects: 230, done.        
remote: Counting objects: 100% (230/230), done.        
remote: Compressing objects: 100% (150/150), done.        
remote: Total 1897 (delta 165), reused 139 (delta 79), pack-reused 1667        
Empfange Objekte: 100% (1897/1897), 406.80 KiB | 1.04 MiB/s, Fertig.
Löse Unterschiede auf: 100% (1465/1465), Fertig.
Submodul-Pfad: 'freecad_python_support': 'b5c10887ccdd068ab1870d031d082d7621242dd8' ausgecheckt
Submodul-Pfad: 'pivy_trackers': '032b930fe0cb8cf67071ffdf02346844b7359cfd' ausgecheckt
hugo@Ahorn:~/.FreeCAD/Mod$ 
only one pivy_trackers directory no pivy_trackers inside this, but

if I change to trails ...

Code: Select all

08:28:28  cannot import name 'ContextTracker' from 'freecad.trails' (/home/hugo/.FreeCAD/Mod/trails__/freecad/trails/__init__.py)
08:28:28  Traceback (most recent call last):
  File "/home/hugo/.FreeCAD/Mod/trails__/freecad/trails/init_gui.py", line 212, in Initialize
    from .design.project.commands \
  File "/home/hugo/.FreeCAD/Mod/trails__/freecad/trails/design/project/commands/edit_alignment_cmd.py", line 32, in <module>
    from ..tasks.alignment import edit_alignment_task
  File "/home/hugo/.FreeCAD/Mod/trails__/freecad/trails/design/project/tasks/alignment/edit_alignment_task.py", line 48, in <module>
    from ...trackers.alignment_tracker import AlignmentTracker
  File "/home/hugo/.FreeCAD/Mod/trails__/freecad/trails/design/project/trackers/alignment_tracker.py", line 32, in <module>
    from freecad.trails import ContextTracker, PolyLineTracker, Drag
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Geotechnical Work Addon

Post by bernd »

Joel_graff wrote: Wed Oct 28, 2020 8:17 pm Originally, it was structured pivy_trackers/pivy_trackers/ to conform to the standard FreeCAD workbench code structure. But pivy_trackers isn't a workbench. It's really a rendering framework for pivy. So it really isn't supposed to be installed as a workbench.
https://github.com/joelgraff/freecad.trails/pull/67
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Geotechnical Work Addon

Post by Joel_graff »

bernd wrote: Thu Oct 29, 2020 7:30 am fresh clone ...
Try again. The import failed because I added a level of hierarchy and didn't fix it.
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: Geotechnical Work Addon

Post by Joel_graff »

JellyPalm wrote: Thu Oct 29, 2020 3:23 am .
Deleted users/...mod/Trails folder and re-cloned - Trails(alpha) WB appears in Workbench Drop-down but when opened:....
Try again. You kinda stepped into the middle of a code restructure which has been needed but I've been ignoring for exactly this reason. :)

Anyway, it's the same error @bernd had, so that's a good sign, I suppose.
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
JellyPalm
Posts: 157
Joined: Sun Mar 29, 2020 12:22 am

Re: Geotechnical Work Addon

Post by JellyPalm »

Joel_graff wrote: Thu Oct 29, 2020 9:18 am
Try again. You kinda stepped into the middle of a code restructure which has been needed but I've been ignoring for exactly this reason. :)
Anyway, it's the same error @bernd had, so that's a good sign, I suppose.
.
success.PNG
success.PNG (91.26 KiB) Viewed 1199 times
"Oh I do love to live beside the seaside!"

Good Indeed. :D :D

Tomorrow, I plan to integrate the Lidar height data, (and costal undersea profile); Map out the existing main State highway with Arch-friendly structures; Create a 6m wide modular concrete hollow section in PartDesign; Use this to sweep out a new 4-lane highway under the existing inadequate costal motorway: prepare a Public Release Design concept to showcase this new sunken motorway extension, and mobilise existing community groups to push for the abandonment of the Local Councils current Transport design that ould have seen low-income and working class communities levelled and amenities uprooted.
Its almost too easy...

and on Saturday.....
Last edited by JellyPalm on Thu Oct 29, 2020 11:55 am, edited 1 time in total.
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Geotechnical Work Addon

Post by Joel_graff »

JellyPalm wrote: Thu Oct 29, 2020 10:15 am Are you with me?
Good luck! FreeCAD's up to the task, but I fear you may have bit off more than you can chew. ;)
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
JellyPalm
Posts: 157
Joined: Sun Mar 29, 2020 12:22 am

Re: Geotechnical Work Addon

Post by JellyPalm »

well, its good to have a plan :roll:
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Geotechnical Work Addon

Post by bernd »

https://github.com/joelgraff/freecad.tr ... 2b467d8430 runs smoot on all my systems :)

Still the elevations do not work, but most of the import osm refactor work has been done. We will get there :D
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Geotechnical Work Addon

Post by Joel_graff »

Just an FYI, I'm still refactoring things, so if you end up with broken code... it was probably me. :shock:
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
Post Reply