Bummer!
Part Geometry Extensions
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Part Geometry Extensions
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: Part Geometry Extensions
You need something like FC 019.17404 or FC 019.17405.I have checked with FC 019.17352 but it seems it has been merged later ...
Re: Part Geometry Extensions
Hi @abdullah
I've tested some coding in using your Geometry Extension.
Would it be possible to display and edit extension through the Gui, inside the sketcher?
i.e. I would like to create a sketch organized by a different extension label assigned to internal geo sections...
It would be nice if it would be possible to display extension value assigned to a geo (i.e. like it is done for Elements Extended naming) and edit its value(s) inside the Sketcher editing tool...
Re: Part Geometry Extensions
Possible, it is.easyw-fc wrote: ↑Fri Jul 19, 2019 1:51 pmHi @abdullah
I've tested some coding in using your Geometry Extension.
Would it be possible to display and edit extension through the Gui, inside the sketcher?
i.e. I would like to create a sketch organized by a different extension label assigned to internal geo sections...
It would be nice if it would be possible to display extension value assigned to a geo (i.e. like it is done for Elements Extended naming) and edit its value(s) inside the Sketcher editing tool...
In my mind, extensions were intended for power users. The idea for "editing" custom extensions by the user, python console aside, was creating custom controls (macros). However, I see different possibilities, ranging from property editors to show/edit (read-only / read-write), to adding only information for core sketcher extensions (like the ID). The thing is that after a request to see the id, one to show "that string label I have put will likely follow".
I think it is something to look into, but I would rather first see how this is being used. The extensions mechanism is very generic and flexible, but it is not really being taken advantage from yet. The core extensions defined for the sketcher are still "just there", not actually being used by the Sketcher yet.
Currently I am mostly reading books to improve my skills, as I am mobile without access to my computer. I might get access to an old laptop next week, but I am not sure how fast it will compile. Maybe you could create a ticket to look into this later on.
[Crash Report] - - - Re: Part Geometry Extensions
Hi, testing further and find with following steps, FC crash :-
- Make a Sketch, draw a rectangle e.g.
- run below code
- FC CRASH
Code: Select all
>>> sg0=s.Geometry[0]
>>> sg0.setExtension(Part.GeometryStringExtension("300","width"))
>>> sg0.getExtensions()
[<GeometryStringExtension ('width', 300) >]
>> sg0.setExtension(Part.GeometryStringExtension("2800","height"))
>>> sg0.getExtensions()
[<GeometryStringExtension ('width', 300) >, <GeometryStringExtension ('height', 2800) >]
>>> sg0.setExtension(Part.GeometryStringExtension("200","width"))
CRASH
on
Fedora30
- Attachments
-
- Test_ GeometryExtension_ Sketcher_ 1.fcstd
- (3.42 KiB) Downloaded 44 times
[Bug? ] - - - Re: Part Geometry Extensions
Oh, further test:-
- Created the Sketch in post above, and set all the extension and save the file before crash
- Close and re-open the file
- Run getExentions(), but all information set is not found ?
Code: Select all
Gui.ActiveDocument=Gui.getDocument("Test__GeometryExtension__Sketcher__1") >>> s=Gui.Selection.getSelection()[0] >>> sg0=s.Geometry[0] >>> sg0.getExtensions() []
[Crash & Bug Report ] - - - Re: Part Geometry Extensions
Same as of:-
FreeCAD_0.19-17499-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage
FreeCAD_0.19-17499-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage