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 »

Your last merge from restructure added GeoDataWB to geomatics. It removed before.
Also some of imports changed with old ones.
Another error

Code: Select all

09:01:55  invalid syntax (curve_tracker.py, line 245)
09:01:55  Traceback (most recent call last):
  File "C:\Users\hakan.seven\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\init_gui.py", line 215, in Initialize
    from .design.project.commands import edit_alignment_cmd
  File "C:\Users\hakan.seven\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\design\project\commands\edit_alignment_cmd.py", line 33, in <module>
    from ..tasks.alignment import edit_alignment_task
  File "C:\Users\hakan.seven\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\hakan.seven\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\design\project\trackers\alignment_tracker.py", line 33, in <module>
    from .curve_tracker import CurveTracker
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 »

Hmm. I've been working in another branch trying to do a little restructuring and refactoring. I just merged dev into it to keep things updated with your work, but I think it may have pushed some changes to dev. I'm not a github expert, so I may have inadvertently screwed something up.

Was GetoDataWB supposed to be gone? I noticed it reappeared and wondered.

Also, I just checked out dev and line 245 is an empty line. Maybe try re-pulling 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
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by HakanSeven12 »

Joel_graff wrote: Thu Jan 14, 2021 12:49 pm Hmm. I've been working in another branch trying to do a little restructuring and refactoring. I just merged dev into it to keep things updated with your work, but I think it may have pushed some changes to dev. I'm not a github expert, so I may have inadvertently screwed something up.
Probably :)
Was GetoDataWB supposed to be gone?
yes
Also, I just checked out dev and line 245 is an empty line. Maybe try re-pulling it?
https://github.com/joelgraff/freecad.tr ... er.py#L245
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 »

ok. I think I fixed that. Will try to get rid of GeoDataWB, too. Let me know if there's other issues. Still not sure what happened.
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 »

I think we need to keep only dev and main branches. I will test it tomorrow.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by HakanSeven12 »

I sended you a message about fixes. I fixed save and restore bug. But after I saved alignments to file, when I try to save it again it gives this error.

Code: Select all

15:45:29  Traceback (most recent call last):
  File "C:\Users\hakan.seven\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\design\project\project_observer.py", line 72, in slotStartSaveDocument
    _cb()
  File "C:\Users\hakan.seven\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\design\alignment\alignment_group.py", line 147, in write_xml
    exporter.write(_list, template_path + template_file, xml_path)
  File "C:\Users\hakan.seven\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\design\project\xml\alignment_exporter.py", line 186, in write
    landxml.write_to_file(root, target_path)
  File "C:\Users\hakan.seven\AppData\Roaming\FreeCAD\Mod\freecad.trails\freecad\trails\design\project\xml\landxml.py", line 115, in write_to_file
    with open(target, 'w', encoding='UTF-8') as _file:
<class 'PermissionError'>: [Errno 13] Permission denied: 'C:\\Users\\HAKAN~1.SEV\\AppData\\Local\\Temp\\FreeCAD_Doc_fe8384ca-5463-4f4f-9a64-b54906a280b3_d15afd_5624/alignment.xml'
Last edited by HakanSeven12 on Sat Jan 16, 2021 6:01 am, edited 1 time in total.
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 »

That problem seemed familiar. I think I must have fixed it at one point. Not sure why it's recurring. It seems like a Windows-only thing?

I will try to test on my end, and see if I get it, too.

Otherwise, for reference:
https://forum.freecadweb.org/viewtopic.php?t=35709
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 »

My windows account is not administrator. Maybe that is the problem.
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 »

HakanSeven12 wrote: Fri Jan 15, 2021 3:23 pm My windows account is not administrator. Maybe that is the problem.
That could be, but you shouldn't have to be to do that. I think that's something that needs to be handled in code. I'll try to take a look at it and see if I can duplicate it on my end in the next day or so.
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 »

Finally working :)
Attachments
ortho vector.png
ortho vector.png (133.75 KiB) Viewed 932 times
Post Reply