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: Sat Apr 27, 2019 12:49 pm Yes :) I think you can use red as default color of alignment

I will test it with my other alignments
Awesome.
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 Apr 27, 2019 1:02 pm Awesome.
When I create new project in your wb its change my unit to imperial.
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 Apr 27, 2019 1:06 pm When I create new project in your wb its change my unit to imperial.
Ah. Right. That's the default.

You don't need to use that button. I haven't really decided if it's necessary. It just auto-creates groups and (obviously) sets the document units.

At this point, I'm thinking about removing it. I'm also open to other ideas, too. I really don't know if it's helpful to have a "new project" function.
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 Apr 27, 2019 1:09 pm Ah. Right. That's the default.

You don't need to use that button. I haven't really decided if it's necessary. It just auto-creates groups and (obviously) sets the document units.

At this point, I'm thinking about removing it. I'm also open to other ideas, too. I really don't know if it's helpful to have a "new project" function.
Okey. Another thing I cant change Seg Value. My curve segments are 80m. When I change the value nothing happen.
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 Apr 27, 2019 1:14 pm Okey. Another thing I cant change Seg Value. My curve segments are 80m. When I change the value nothing happen.
That's really odd. I've never had it fail. No errors in the Report View?

Have you tried changing the segment method? I typically switch it to Interval and 10m or something... (I have to come up with better names for this stuff...)
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 Apr 27, 2019 1:17 pm That's really odd. I've never had it fail. No errors in the Report View?

Have you tried changing the segment method? I typically switch it to Interval and 10m or something... (I have to come up with better names for this stuff...)
When I changed the method, aligment segments are chancing but still seg value broken.

Code: Select all

C:/Users/Hakan/Desktop/FreeCAD Data/Manisa.xml
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
utils.within_tolerance() - empty item list
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 Apr 27, 2019 1:19 pm utils.within_tolerance() - empty item list
Yeah, that doesn't mean anything. Actually, not sure why that's happening, but mostly it's a harmless diagnostic.

I've brought your XML file in and changed the Segment method and values and it works perfectly.

You could try adding print statements to the onChanged callback in freecad.trails/alignment/alignment.py - that would at least tell you if it's getting called.

Otherwise, unless I can reproduce the error (or you can spot an error message somehwere), I don't know what to say...
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: Sat Apr 27, 2019 1:19 pm When I changed the method, aligment segments are chancing but still seg value broken.
Can you get it to work in in any case? I mean, just import your XML alignment into a new document and try that.
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 Apr 27, 2019 1:43 pm Can you get it to work in in any case? I mean, just import your XML alignment into a new document and try that.
Its working odd. When I change the value and hit the enter its never work but if I change the value and click to drawing without enter its work.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by HakanSeven12 »

Some Seg Value inputs and segments length.

0.1------15.53
1.0------48.97
10-------153.59
Post Reply