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
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Civil engineering feature implementation

Post by microelly2 »

here some more prototypes for
clone, copy and reuse sketches from a sketch collection

phpBB [video]

phpBB [video]


my idea is to find methods which allow to replace low level detailed components by finer ones.
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation

Post by Joel_graff »

Kunda1 wrote: Thu Jul 13, 2017 3:59 pm @Joel_graff ping. Any proof of concepts yet ?
I haven't done anything lately. microelly2 was working on adapting the sketchobject parenting method to see it it could accommodate the hierarchy I described. Without that, there's not much to do at the moment. I also seem to have issues trying to get the sketchobjectpython scripts to work - it won't pick up on the 'pyob' module, for some reason.
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
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Civil engineering feature implementation

Post by microelly2 »

Joel_graff wrote: Thu Jul 13, 2017 5:19 pm I also seem to have issues trying to get the sketchobjectpython scripts to work - it won't pick up on the 'pyob' module, for some reason.
at the moment I put all my work into the nurbs workbench, there the pyob module is integrated.
I work on the sketch driver for the ribs and it's for me a time of learning, how the sketches can interact.
I have to learn how to catch the exceptions of the sketcher solver to bring a system back to a state in the case
when a change is not possible.
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation

Post by Joel_graff »

microelly2 wrote: Thu Jul 13, 2017 5:32 pm at the moment I put all my work into the nurbs workbench, there the pyob module is integrated.
I work on the sketch driver for the ribs and it's for me a time of learning, how the sketches can interact.
I have to learn how to catch the exceptions of the sketcher solver to bring a system back to a state in the case
when a change is not possible.
Ok, I'll see if I can get the nurbs workbench going.

The videos look really good!
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
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Civil engineering feature implementation

Post by abdullah »

Regarding the "solver failure" a couple of pages of posts ago, I found it strange. In my experience, end-point-to-end-point tangency works quite nicely.

If there is still interest that I look into it, if you can save the sketch just in the moment before adding the offending arc, you could open a ticket with it. I will look into it in August-September.

Replying to your question. I am not aware of any way of forcing the solver to comply with ones undeclared wishes. The only way that generally works is declaring the wishes by providing a solution as close as possible before actually asking the solver to solve. The solver, as most people, is lazy enough to choose the easiest way out ;)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Civil engineering feature implementation

Post by Kunda1 »

abdullah wrote: Fri Jul 14, 2017 11:29 pm If there is still interest that I look into it, if you can save the sketch just in the moment before adding the offending arc, you could open a ticket with it. I will look into it in August-September.
joel_graff wrote:...
@joel_graff please open an issue in the tracker and link back to this thread
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation

Post by Joel_graff »

I should mention there is no "offending arc" per se. It is, though, as abdullah states - the solver's taking the easiest way out, and if two items are not closely aligned, they're subject to being moved - I intuitively understood that's how the solver is meant to function. But, of course, it creates problems in our use case.

Thus, either we write code to generate geometry that matches the existing tangents closely (which I have an algorithm about half-written to do that), or add functionality to FreeCAD that allows us to "lock down" certain geometry for the solver - much like the lock constraint does.

I will open an issue for the latter option above.
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

Post by Joel_graff »

Posted as feature 003127. Starting to see that maybe I should have split it into two - a bug for the arc behavior and a feature for the alignment behavior.. ?
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
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Civil engineering feature implementation

Post by Kunda1 »

Joel_graff wrote: Sat Jul 15, 2017 3:44 am Posted as feature 003127. Starting to see that maybe I should have split it into two - a bug for the arc behavior and a feature for the alignment behavior.. ?
I assigned issue #3127 to Abdullah
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
matt
Posts: 2
Joined: Mon Jul 17, 2017 2:26 pm

Re: Civil engineering feature implementation

Post by matt »

as a sidenote, alignment is implemented in ifc as ifcalignment

If I understood it correctly, parsing an "ifc-alignment-file" was implemented recently in ifcopenshell

maybe that helps?
Post Reply