Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
def isLine(something):
if hasattr(Part,"LineSegment"):
return isinstance(something,(Part.Line,Part.LineSegment))
else:
return isinstance(something,Part.Line)
great @yorik!
that's exactly what I was looking for...
this is working in both FC releases with a simple and clean solution ...
I only still have a warning message on FC 0.17
DeprecationWarning: For future usage 'Curve' will return 'Line' which is infinite instead of the limited 'LineSegment'.
If you need a line segment then use this:
Part.LineSegment(edge.Curve,edge.FirstParameter,edge.LastParameter)To suppress the warning set BaseApp/Preferences/Mod/Part/General/LineOld to false
DeprecationWarning: For future usage 'Curve' will return 'Line' which is infinite instead of the limited 'LineSegment'.
If you need a line segment then use this:
Part.LineSegment(edge.Curve,edge.FirstParameter,edge.LastParameter)To suppress the warning set BaseApp/Preferences/Mod/Part/General/LineOld to false
that I have to investigate further to discover where is coming from...
thx again
Maurice
PRhttps://github.com/hamish2014/FreeCAD_a ... 2/pull/127
- added function to manage Part.Line and Part.LineSegment in FC 0.16 and FC 0.17 (ref. FC PR #359)
(thx to @yorik ; to do: find how to remove warning message in Report panel)
- allow to constraint circular edges and faces
new-faces-constraint.gif (838.86 KiB) Viewed 3067 times
easyw-fc wrote:I only still have a warning message on FC 0.17
Yes this is normal, that message is there so all python developers get warned that things are changing. In the future it will disappear. You can already remove it by setting LineOld to false as explained earlier in this thread.
BTW, hamish2014, the author of assembly2, doesn't wish to work further on his two workbenches. I've been thinking we could in a fist time move them to the FreeCAD github...
I am collaborator for the two workbenches, so i have write/push access.
Depending on hamish's wishes i guess ownership/location could be transferred but remember that there are a lot
of links in the forum pointing to hamish's user github-account ...
easyw-fc wrote:I only still have a warning message on FC 0.17
Yes this is normal, that message is there so all python developers get warned that things are changing. In the future it will disappear. You can already remove it by setting LineOld to false as explained earlier in this thread.
nice, thx
yorik wrote:
BTW, hamish2014, the author of assembly2, doesn't wish to work further on his two workbenches.
Aha, didn't know that roland...
Well for me it depends on hamish's wish. I remember we discussed that with him, and he said he would like to have these two modules merged in the FreeCAD code. But now I'm thinking, since the workbenches ecosystem is growing, and it becomes easier to install new workbenches, why not keep them separate, like now. But indeed then there is less reason to not leave them on hamish's github, specially if others like roland can work on it...
hehe not sure anymore what to do now
IMHO nothing. @hamish was a ground breaker on how an "add-on" could work with FreeCAD. @r-frank is breaking ground on "what happens then?"
Thanks @r-frank for stepping up. From the beginning to the present, this is a model for how it could/should work.
Hello,
I use Freecad with pupil from 13 to 16 year's old ( I am teacher in technology).
Could you do something very useful :
When we click on a constraint, could you show on the assembly, the face, the line, the circle .... that are use by this constraint.