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
Kunda1
Posts: 5949
Joined: Thu Jan 05, 2017 9:03 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Kunda1 » Tue Sep 10, 2019 6:17 pm

Olé!
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
ebrahim raeyat
Posts: 159
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby ebrahim raeyat » Thu Sep 12, 2019 1:27 am

Thank @Joel_graff. when i want to activate your workbench this error appeared:

Code: Select all

invalid syntax (publisher.py, line 101)
Traceback (most recent call last):
  File "/home/ebi/.FreeCAD/Mod/freecad.trails/freecad/trails/init_gui.py", line 110, in Initialize
    from .project.commands \
  File "/home/ebi/.FreeCAD/Mod/freecad.trails/freecad/trails/project/commands/edit_alignment_cmd.py", line 33, in <module>
    from ..tasks.alignment import edit_alignment_task
  File "/home/ebi/.FreeCAD/Mod/freecad.trails/freecad/trails/project/tasks/alignment/edit_alignment_task.py", line 46, in <module>
    from ...support.publisher import Publisher
it seems it is related to relative import. thanks.
User avatar
ebrahim raeyat
Posts: 159
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby ebrahim raeyat » Thu Sep 12, 2019 1:29 am

i forgot to mention my freecad system:

Code: Select all

OS: Ubuntu 18.04.2 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16718 (Git)
Build type: Release
Branch: master
Hash: cfd04ac6afa091f5c4f18e94756bd58fb6d66806
Python version: 3.7.1
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
User avatar
Joel_graff
Posts: 1584
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Thu Sep 12, 2019 2:03 am

ebrahim raeyat wrote:
Thu Sep 12, 2019 1:27 am
Thank @Joel_graff. when i want to activate your workbench this error appeared:
I fixed what was breaking it. You'll find that it's not really very useful at this point, however. I'm really just trying to create an initial 0.1 release with the horizontal tool and there's still a lot of bugs to work out.

Still, you can import LandXML with single-center curves and edit it. I suspect it won't save or reload properly anymore - been a long time since I've touched that code and a lot has changed.

There is some test data in the workbench at:
freecad/trails/resources/data/alignment/SugarGroveRoad.xml
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
ebrahim raeyat
Posts: 159
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby ebrahim raeyat » Thu Sep 12, 2019 7:33 pm

Joel_graff wrote:
Thu Sep 12, 2019 2:03 am

I fixed what was breaking it. You'll find that it's not really very useful at this point, however. I'm really just trying to create an initial 0.1 release with the horizontal tool and there's still a lot of bugs to work out.

Still, you can import LandXML with single-center curves and edit it. I suspect it won't save or reload properly anymore - been a long time since I've touched that code and a lot has changed.

There is some test data in the workbench at:
freecad/trails/resources/data/alignment/SugarGroveRoad.xml
Thanks. it is now working, although i couldn't work with that. nor one open FCStd or import csv or xml.

i will follow your work, it is interesting.
User avatar
Kunda1
Posts: 5949
Joined: Thu Jan 05, 2017 9:03 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Kunda1 » Thu Sep 12, 2019 8:55 pm

ebrahim raeyat wrote:
Thu Sep 12, 2019 1:29 am

Code: Select all

Version: 0.19.16718 (Git)
we're on revision 0.19.18198
you should probably update.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Joel_graff
Posts: 1584
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Thu Sep 12, 2019 9:49 pm

ebrahim raeyat wrote:
Thu Sep 12, 2019 7:33 pm
Thanks. it is now working, although i couldn't work with that. nor one open FCStd or import csv or xml.

i will follow your work, it is interesting.
I haven't really been doing a good job making the user interface accessible, I admit.

CSV fucntionality is broken and deprecated. I won't be using it going forward.

You can import an XML file by pressing CTRL_Shift_A. That will let you open a file dialog to pick the XML file. That *should* work. Hakan seemed to make it work on his own LandXML files, anyway.

I really should try to update the commands, though. I've really ignored that stuff because I figured no one was paying attention anyway. ;)
Last edited by Joel_graff on Fri Sep 13, 2019 11:51 am, 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
HakanSeven12
Posts: 280
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby HakanSeven12 » Fri Sep 13, 2019 5:26 am

It works except non-infinity spirals :)
User avatar
Joel_graff
Posts: 1584
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Fri Sep 13, 2019 11:51 am

HakanSeven12 wrote:
Fri Sep 13, 2019 5:26 am
It works except non-infinity spirals
Have you had a chance to look at the Geomatics issue yet?
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: 280
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby HakanSeven12 » Fri Sep 13, 2019 12:01 pm

Joel_graff wrote:
Fri Sep 13, 2019 11:51 am
Have you had a chance to look at the Geomatics issue yet?
I dont have enough time for it but you can talk with https://github.com/allilou. Maybe he can do something.