Civil engineering feature implementation (Transportation Engineering)
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Civil engineering feature implementation
here some more prototypes for
clone, copy and reuse sketches from a sketch collection
my idea is to find methods which allow to replace low level detailed components by finer ones.
clone, copy and reuse sketches from a sketch collection
my idea is to find methods which allow to replace low level detailed components by finer ones.
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Re: Civil engineering feature implementation
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
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Civil engineering feature implementation
at the moment I put all my work into the nurbs workbench, there the pyob module is integrated.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.
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.
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Re: Civil engineering feature implementation
Ok, I'll see if I can get the nurbs workbench going.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.
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
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
Re: Civil engineering feature implementation
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
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
Re: Civil engineering feature implementation
@joel_graff please open an issue in the tracker and link back to this threadjoel_graff wrote:...
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
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
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Re: Civil engineering feature implementation
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.
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
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Re: Civil engineering feature implementation
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
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
Re: Civil engineering feature implementation
I assigned issue #3127 to AbdullahJoel_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.. ?
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
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
Re: Civil engineering feature implementation
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?
If I understood it correctly, parsing an "ifc-alignment-file" was implemented recently in ifcopenshell
maybe that helps?