It's good. I will add more description in that image like what is front cover, side cover etc.
Regards,
It's good. I will add more description in that image like what is front cover, side cover etc.
Now, I have updated my scripts and removed try statements. Try to run my scripts as macros (Macro > Macros > change the macros location to FreeCAD-Reinforcement > select the StraightRebar.py > Execute).
I already fix it.
Now, I have updated my code and removed all try, except statements. Also added checks and image in the dialog box. Please follow the steps which I have shared in my previous post to run my code (https://forum.freecadweb.org/viewtopic. ... 10#p177102).
Here, what is ModuleName? Is it be a filename or class name of rebar (like _StraightRebarTaskPanel)?yorik wrote: ↑Fri Jun 09, 2017 3:25 am About the system I explained above, to make it possible to edit the rebar with one of your scripts, the idea is to add a App::PropertyString to the Rebar (it could be in the view provider, since it will work in GUI mode only anyway), that holds the name of the python module responsible ("StraightRebar" for example). The property can be hidden with setEditorMode(propname, 2)
Then in the same view provider, the setEdit() function must be reimplemented (currently uses the one from its parent class), and check if that property exists and if it contains something. If yes, it must try a "import ModuleName" and run "ModuleName.editDialog(RebarObject)"
It is a filename that you can import in python (ex. StraightRebar.py, so you can do "import StraightRebar")
In continuation of the discussion at IRC (on 2017-06-09 at 19:25 - http://freecadlog.archivist.info/previous.php), following is my problem statement.
+1yorik wrote: ↑Sun Jun 11, 2017 5:27 pm I think you can have both: Something simple with presets, or let the user fin-tune things and select him/herself the exact face to build things on. In other words, we should of course make things simpler for newer users, but this should never restrict the possibilities for the power user.
Yorik, I have sent a PR (https://github.com/FreeCAD/FreeCAD/pull/822) to FreeCAD master repository. Kindly, accept this PR.
Hi Yorik,