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
Posts: 817
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby HakanSeven12 » Fri Jun 12, 2020 7:55 am

Joel_graff wrote:
Fri Jun 12, 2020 12:49 am
Is it still throwing errors when the workbench activates?
Yes
User avatar
Joel_graff
Posts: 1783
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Fri Jun 12, 2020 12:07 pm

ok. Just checking - have you puled the latest? I updated a couple days ago. I don't see issues on my side, so I don't know what the problem is.
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
Posts: 817
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby HakanSeven12 » Tue Jun 16, 2020 9:27 am

Joel_graff wrote:
Fri Jun 12, 2020 12:07 pm
have you puled the latest?
Yes.
REPO.png
REPO.png (3.95 KiB) Viewed 353 times

Code: Select all

During initialization the error "cannot import name 'Const' from 'pivy_trackers' (unknown location)" occurred in freecad.trails
--------------------------------------------------------------------------------
Traceback (most recent call last):
  File "<string>", line 148, in InitApplications
  File "C:\Users\Hakan\Downloads\FreeCAD_0.19.21125-Win-Conda_vc14.x-x86_64\bin\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\Hakan\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\__init__.py", line 52, in <module>
    ContextTracker = import_class(
  File "C:\Users\Hakan\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\__init__.py", line 50, in import_class
    return getattr(import_module(path, name), name)
  File "C:\Users\Hakan\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\__init__.py", line 43, in import_module
    return __import__(path, globals(), locals(), _name_list)
  File "C:\Users\Hakan\AppData\Roaming\FreeCAD\Mod\freecad.trails\pivy_trackers\pivy_trackers\tracker\context_tracker.py", line 27, in <module>
    from ..trait.base import Base
  File "C:\Users\Hakan\AppData\Roaming\FreeCAD\Mod\freecad.trails\pivy_trackers\pivy_trackers\trait\base.py", line 26, in <module>
    from ..coin.coin_enums import NodeTypes as Nodes
  File "C:\Users\Hakan\AppData\Roaming\FreeCAD\Mod\freecad.trails\pivy_trackers\pivy_trackers\coin\coin_enums.py", line 26, in <module>
    from pivy_trackers import Const
ImportError: cannot import name 'Const' from 'pivy_trackers' (unknown location)
User avatar
Joel_graff
Posts: 1783
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Mon Jun 22, 2020 12:48 pm

Yeah, this is exactly what I didn't want to do. ;)

've already fixed it on my side, but the github isn't updating correctly. You shouldn't have had to fix anything.

I may end up dumping submodules altogether if I can't get this working reliably here soon. I'll let you know.
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
Posts: 1783
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Mon Jun 22, 2020 1:16 pm

Ok, so I think I've fixed the issues with this. Pull from freecad.trails/dev and give it a try. We'll get it sorted, but I need to make sure I'm doing it right.
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
Posts: 817
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby HakanSeven12 » Mon Jun 22, 2020 1:34 pm

It works.
thschrader
Posts: 1808
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Civil engineering feature implementation (Transportation Engineering)

Postby thschrader » Wed Jun 24, 2020 1:57 pm

How must I set the column-filters for importing file with xyz-coordinates alone?
How can I avoid scaling from m to mm? (I am using FC-default coordinates)
Example file (Stanford-bunny) from here:
https://wiki.freecadweb.org/Points_Import
StanfordBunny.txt
(10.87 KiB) Downloaded 10 times
importPointFile.JPG
importPointFile.JPG (73.56 KiB) Viewed 176 times
User avatar
HakanSeven12
Posts: 817
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby HakanSeven12 » Wed Jun 24, 2020 2:33 pm

thschrader wrote:
Wed Jun 24, 2020 1:57 pm
How must I set the column-filters for importing file with xyz-coordinates alone?
You can use this thread for usage help: https://forum.freecadweb.org/viewtopic.php?f=8&t=34371
I fixed point file import bug. Update workbech first.
Set columns like that.
Easting = X
Norting = Y
Elevation = Z
Attachments
setcolumn.png
setcolumn.png (29.37 KiB) Viewed 161 times
thschrader
Posts: 1808
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Civil engineering feature implementation (Transportation Engineering)

Postby thschrader » Wed Jun 24, 2020 3:19 pm

HakanSeven12 wrote:
Wed Jun 24, 2020 2:33 pm
...
I fixed point file import bug. Update workbech first.
Set columns like that.
Easting = X
Norting = Y
Elevation = Z
Works! :)
importBunny.JPG
importBunny.JPG (32.77 KiB) Viewed 139 times