yorik wrote:
I have actually never used InputFields directly in an ui file, not sure how that works on python side. In any case, you'll need to compile the special FreeCAD widgets to be able to use them in QDesigner:
https://www.freecadweb.org/wiki/Compile ... ner_plugin
I have made a simple prototype which will show the workflow of my proposed proposal.
1. Input values given to dialog box in the task panel.
- step1.png (214.18 KiB) Viewed 1867 times
2. After filling the user inputs values, then clicking the OK button which will produce the given below output.
- step2.png (241.13 KiB) Viewed 1867 times
Installation:
1. Download the files present in the link (
https://github.com/amrit3701/FreeCAD-Reinforcement).
2. After download, open the
TaskPanelStraightRebar.py file and set the path of the UI file in line number 6.
3. Create the structural element. Copy and paste the below code to create structure element.
Code: Select all
import Arch
s = Arch.makeStructure(length=1000.0,width=800.0,height=200.0)
s.Placement.Base = FreeCAD.Vector(0.0,0.0,0.0)
FreeCAD.ActiveDocument.recompute()
4. Then select the structural element, copy and paste the code present in the
TaskPanelStraightRebar.py file.
Regards,