I was inspired by how SolidWorks works and the Sketch Workbench. When creating a new object in SolidWorks, a tab is open where configuration for the new object is set. I used the Tasks panel in FreeCAD to more or less model that functionality of SolidWorks.
Like I mentioned, the script is not as functional as I wish. But I want to know what other people think about the current way of how it works. Some of the features that the script has that I found quite interesting are:
- Being able to just click on a part and get its name (For now it only works when clicking a link)
- Being able to configure the array before creating it (I think this is a more intuitive way of creating arrays)
- For a polar array, selecting a center by just clicking a coordinate system or a datum line
- How the interface works (I found it kind of intuitive)
Here are some pictures of the macro. Here the cube is called "selte" and the datum axis is called "Axis_1." Again, I ask for feedback on the macro so I can improve it. I also would appreciate feedback on the code since I am not sure if the way I wrote it is the best way. Eventually I would like to include the functionality of this macro into Assembly 4 or maybe the Draft Workbench.
Thanks!