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
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: Tue Apr 30, 2019 1:07 pm where do I send errors? Here or Github?

When I import an alignment and save the file its give this error.
Post them here.

I'll take a look at that. I've used save a couple of times in the last few days, so it must be a recent change that broke it. May not get to this till tomorrow, though.
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 »

HakanSeven12 wrote: Tue Apr 30, 2019 1:07 pm where do I send errors? Here or Github?

When I import an alignment and save the file its give this error.
This has been fixed. Pull from dev. :)
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 May 02, 2019 3:39 pm This has been fixed. Pull from dev. :)
First save ok :) the second save is crashed

Code: Select all

Traceback (most recent call last):
  File "C:\Users\Hakan\AppData\Roaming\FreeCAD\Mod\freecad.trails-dev\freecad\trails\project\project_observer.py", line 72, in slotStartSaveDocument
    _cb()
  File "C:\Users\Hakan\AppData\Roaming\FreeCAD\Mod\freecad.trails-dev\freecad\trails\alignment\alignment_group.py", line 142, in write_xml
    exporter.write(_list, template_path + template_file, xml_path)
  File "C:\Users\Hakan\AppData\Roaming\FreeCAD\Mod\freecad.trails-dev\freecad\trails\project\xml\alignment_exporter.py", line 186, in write
    landxml.write_to_file(root, target_path)
  File "C:\Users\Hakan\AppData\Roaming\FreeCAD\Mod\freecad.trails-dev\freecad\trails\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\\AppData\\Local\\Temp\\FreeCAD_Doc_c0350148-5714-4c98-b554-97ab98c5a9e1_aa90b9_9040/alignment.xml'
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: Thu May 02, 2019 5:08 pm First save ok :) the second save is crashed
I'm pretty sure that's this issue here:

https://forum.freecadweb.org/viewtopic. ... nt#p302197

Pinged wmayer on it and I think he missed it...

Trying again.
wmayer 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
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 May 02, 2019 5:18 pm I'm pretty sure that's this issue
Hi Joel I want to add my WB "Guide Lines" folder to your alignment. Like this
Sample.png
Sample.png (5.36 KiB) Viewed 908 times
I dont know its possible or not
Last edited by HakanSeven12 on Mon May 20, 2019 9:33 pm, 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 »

HakanSeven12 wrote: Sat May 18, 2019 6:57 am I dont now its possible or not
You should be able to do that by getting a reference to the Alignments DocumentObjectGroup and simply adding your object using addObject().
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: Sat May 18, 2019 11:06 am You should be able to do that by getting a reference to the Alignments DocumentObjectGroup and simply adding your object using addObject().
I dont want to add it to "Alignments" group. I want to add it like alignment wire object subgroup.
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: Sat May 18, 2019 1:01 pm I dont want to add it to "Alignments" group. I want to add it like alignment wire object subgroup.
The alignment itself is based on Part.Wire / Part2DObjectPython. Which means it's not intended to have grouping capabilities, so you can't add child objects to it.

The alignment object itself encapsulates horizontal alignments only. Vertical alignments / profiles will be a separate object. It may be that a custom group object will be needed to contain all of the parts (as indicated in your screenshot) - so if you want to create a an alignment subgroup, that's probably your best option for the time being.
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
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Jee-Bee »

Please stop quoting if you react on previous post.
There is no need for that...
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 »

I do it as a courtesy to the user who posted so they get a notification that I've responded.

I'll try not to quote you, however. :)
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