Design 456 progress

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
User avatar
marja1
Posts: 80
Joined: Wed Jan 06, 2021 2:00 pm

Design 456 progress

Postby marja1 » Sun Feb 21, 2021 10:05 pm

Note:
Please don't reply to this thread. This is an announcement thread. I represent my progress in developing of the Design456 WB.
Started 2021-02-21

Many commands are added
-2D: Addition, subtraction, common and surface creation using two lines, curves or edges of two objects.
-Many Primitives objects.
-Face, object extrusion
-Some Part:s functionality.
-Face selection mechanism, face finding, edge finding ..etc.

Known issues:

-FreeCAD fails to remove a mouse-callback. You need to use twice ESC to release some of the Primitives.. I don't know why (Look at the console even when the "remove callback" text appear in the console but the actual action is not happening.
-Some surfaces causes problem for some of the functions I have.
-Undo-Redo is not working at all. You should not experiment dangerous commands on important objects (like fillet, Chamfer ..et). These can destroy the geometry if you don't be careful.
-Good cleanup of the objects might be difficult without been careful what you delete and what you create simple-copy of it.
-Not selecting the correct shape or sub-shape results in disaster .. I tried to avoid getting bad geometry.. but I think it is not working yet.
-MakeArrayFace, Loft On Direction, and Tweak : These functions are from the forum. I tried to change it from Macro to a command to the WB. Not much effort are dedicated to further improve them. But I have them in my mind. They are great if they works.

Future plans:
I wish to have as many as I can commands that are essential for the WB. After that I will try to fix the problems and making further developments for the existing commands.

TEST:
I really don't have so much time left to test. My time is to develop the WB. I hope others in the forum will try the WB and report to the github the problems .. And please might suggest a way to solve it. If not the actual code .. maybe diagram, steps ..etc.

Github:
https://github.com/MariwanJ/Design456

I will try to update you as much as I can..
Thanks for reading.
Last edited by marja1 on Mon Feb 22, 2021 8:03 am, edited 1 time in total.
User avatar
bernd
Posts: 11296
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Design 456 progress

Postby bernd » Mon Feb 22, 2021 6:07 am

You must have forgoten to add the github link to your wb!
User avatar
marja1
Posts: 80
Joined: Wed Jan 06, 2021 2:00 pm

Re: Design 456 progress

Postby marja1 » Mon Feb 22, 2021 3:40 pm

Adding 2d Drawing:
- 3 points to Arc - From Mario macro modified
-Multi-points to line - Open
-Multi-Points to line - Closed
The above functions could be used with Primitives. You can create very complex shapes with Extrude in a very limited time.
User avatar
marja1
Posts: 80
Joined: Wed Jan 06, 2021 2:00 pm

Re: Design 456 progress

Postby marja1 » Tue Feb 23, 2021 8:27 am

Selection mode implemented:
1-Body
2-Face
3-Edge
4-Verticies

Issues:
  • Unfortunately I don't know how to put the buttons inside the 3D view
  • I don't know either how to stop the warning sound .. it is not good to have it
User avatar
marja1
Posts: 80
Joined: Wed Jan 06, 2021 2:00 pm

Re: Design 456 progress

Postby marja1 » Thu Feb 25, 2021 12:26 pm

marja1 wrote:
Mon Feb 22, 2021 3:40 pm
Adding 2d Drawing:
- 3 points to Arc - From Mario macro modified
-Multi-points to line - Open
-Multi-Points to line - Closed
The above functions could be used with Primitives. You can create very complex shapes with Extrude in a very limited time.
New video shows how you can use the new commands. :lol:
phpBB [video]
User avatar
Kunda1
Posts: 9685
Joined: Thu Jan 05, 2017 9:03 pm

Re: Design 456 progress

Postby Kunda1 » Fri Feb 26, 2021 12:42 am

Interesting. I noticed that is was challenging for you as you pixel hunting to get those lines and corners selected. Perhaps increasing your pick radius ?
Preferences > Display > 3D View > Rendering > Pick radius (px)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
marja1
Posts: 80
Joined: Wed Jan 06, 2021 2:00 pm

Re: Design 456 progress

Postby marja1 » Fri Feb 26, 2021 5:21 pm

New improvement.
Lof on Direction is fixed from all bugs.
Please download the new version ..
Mario had many miscalculation in his Macro.. I fixed them.
I added also debug info in all my classes to get good info when the commands fails to get the line number

New video :
phpBB [video]
User avatar
marja1
Posts: 80
Joined: Wed Jan 06, 2021 2:00 pm

Re: Design 456 progress

Postby marja1 » Fri Feb 26, 2021 6:58 pm

Kunda1 wrote:
Fri Feb 26, 2021 12:42 am
Interesting. I noticed that is was challenging for you as you pixel hunting to get those lines and corners selected. Perhaps increasing your pick radius ?
Preferences > Display > 3D View > Rendering > Pick radius (px)
thanks