Birth of Design456 Workbench

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Birth of Design456 Workbench

Post by Kunda1 »

LOL....look i get it was a mistake and all that.. and that you didn't mean anything by it...but you added that to your commit history. So asking for someone not be 'sensitive' on top of being the one who caused the issue is honestly not well-mannered. Even though git commit history can be modified (which btw you haven't offered to do yet), it's a social courtesy to be apologetic without telling someone "Yea..OK...but don't be so sensitive". It achieves the opposite of what you're trying to avoid.
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
User avatar
johnwang
Veteran
Posts: 1345
Joined: Sun Jan 27, 2019 12:41 am

Re: Birth of Design456 Workbench

Post by johnwang »

Just installed.
Got an error saying: No module named 'OCC'.
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
mariwan
Posts: 469
Joined: Wed Jan 06, 2021 2:00 pm

Re: Birth of Design456 Workbench

Post by mariwan »

johnwang wrote: Thu Dec 02, 2021 12:36 pm Just installed.
Got an error saying: No module named 'OCC'.
Hi,
Seems that you have an old FreeCAD.
Please use the latest. I get no error if I run the import command in my FreeCAD

Code: Select all

OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.26306 (Git)
Build type: Release
Python version: 3.8.12
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: .......
Attachments
test.JPG
test.JPG (20.42 KiB) Viewed 1636 times
User avatar
mariwan
Posts: 469
Joined: Wed Jan 06, 2021 2:00 pm

Re: Birth of Design456 Workbench

Post by mariwan »

Starting new tool
Design456_ExtendFace.

Look at the video to see what I have for plan to code. Please let me know if you have other requests.

Thanks.
phpBB [video]
User avatar
johnwang
Veteran
Posts: 1345
Joined: Sun Jan 27, 2019 12:41 am

Re: Birth of Design456 Workbench

Post by johnwang »

mariwan wrote: Thu Dec 02, 2021 3:15 pm Seems that you have an old FreeCAD.
FreeCAD_0.20.26155_Win-LPv12.5.4_vc17.x-x86-64
Just downloaded the weekly build. Still have the error.

Code: Select all

08:33:04  No module named 'OCC'
08:33:04  Traceback (most recent call last):
  File "<string>", line 58, in Initialize
  File "H:\FreeCAD_0.20.26155_Win-LPv12.5.4_vc17.x-x86-64\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Users\ian\AppData\Roaming\FreeCAD\Mod\Design456\DirectModeling\directModelingCommands.py", line 34, in <module>
    import DirectModeling.Design456_ExtendFace
  File "H:\FreeCAD_0.20.26155_Win-LPv12.5.4_vc17.x-x86-64\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Users\ian\AppData\Roaming\FreeCAD\Mod\Design456\DirectModeling\Design456_ExtendFace.py", line 49, in <module>
    from OCC import Core
  File "H:\FreeCAD_0.20.26155_Win-LPv12.5.4_vc17.x-x86-64\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
johnwang
Veteran
Posts: 1345
Joined: Sun Jan 27, 2019 12:41 am

Re: Birth of Design456 Workbench

Post by johnwang »

This is the error running from Python consol:

Code: Select all

>>> ### End command Std_Workbench
>>> from OCC import Core
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "H:\FreeCAD_0.20.26155_Win-LPv12.5.4_vc17.x-x86-64\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'OCC'
>>>
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.26155 (Git)
Build type: Release
Branch: master
Hash: 0926a4148bcff11249fd4f56bc30256102ffe105
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
Pauvres_honteux
Posts: 728
Joined: Sun Feb 16, 2014 12:05 am
Location: Far side of the moon

Re: Birth of Design456 Workbench

Post by Pauvres_honteux »

mariwan wrote: Thu Dec 02, 2021 7:05 pm Starting new tool "Design456_ExtendFace".

Please let me know if you have other requests.
Hi mariwan, how about making this tool more generic, so it's possible to manipulate an arbitrary surface, not just a flat one?

Like:
"single-click on surface once and manipulate it as a stiff surface"
or
"double click on surface and manipulate it as a rubber-like surface"
or
"looong click on surface and manipulate its boundary tangencies/ruling surfaces".

The boundaries them self are created and manipulated elsewhere.

Stiff surface manipulation = only position and orientation.
Rubber like surface manipulation = only surface deformation within boundaries (no boundary manipulation).
Boundary tangency manipulation = only ruling surfaces orientation/angle (no position/boundary manipulation).
User avatar
mariwan
Posts: 469
Joined: Wed Jan 06, 2021 2:00 pm

Re: Birth of Design456 Workbench

Post by mariwan »

Pauvres_honteux wrote: Fri Dec 03, 2021 7:15 am
mariwan wrote: Thu Dec 02, 2021 7:05 pm Starting new tool "Design456_ExtendFace".

Please let me know if you have other requests.
Hi mariwan, how about making this tool more generic, so it's possible to manipulate an arbitrary surface, not just a flat one?

Like:
"single-click on surface once and manipulate it as a stiff surface"
or
"double click on surface and manipulate it as a rubber-like surface"
or
"looong click on surface and manipulate its boundary tangencies/ruling surfaces".

The boundaries them self are created and manipulated elsewhere.

Stiff surface manipulation = only position and orientation.
Rubber like surface manipulation = only surface deformation within boundaries (no boundary manipulation).
Boundary tangency manipulation = only ruling surfaces orientation/angle (no position/boundary manipulation).
Thanks for you suggestion.
First : Would you please make the suggestion at my github .. make an issue ? I will remember it and must target it. But here I might loose the info
Second: Flat surfaces is always easier to start with. When you can the technique to manipulate it you can go further and do much more manipulation. For surfaces has curvature, it wouldn't be very easy. Many calculation will be involved. I have it in my mind.
Third: Scaling the face : This wouldn't' be difficult.
Fourth: Rotation is in the plan

Generally, I will make more tools to manipulate faces. This one is just the start. All sort of manipulation , hope, I will make

Please put your suggestion at my github .. So we preserve also the author of the suggestion. Thank you.
User avatar
mariwan
Posts: 469
Joined: Wed Jan 06, 2021 2:00 pm

Re: Birth of Design456 Workbench

Post by mariwan »

johnwang wrote: Thu Dec 02, 2021 9:43 pm This is the error running from Python consol:

Code: Select all

>>> ### End command Std_Workbench
>>> from OCC import Core
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "H:\FreeCAD_0.20.26155_Win-LPv12.5.4_vc17.x-x86-64\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'OCC'
>>>
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.26155 (Git)
Build type: Release
Branch: master
Hash: 0926a4148bcff11249fd4f56bc30256102ffe105
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)
I am quite sure that your version of FreeCAD has got a problem .. why? Really don't know.
I have two machines I test my WB on, and both works without an issue.
I still didn't use that library and I made an "If" statement to pass the problem but you need to look at your version.
I often download the weekly build and use it.. no installation.
Try to update your version and let me know if the problem still exist
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Birth of Design456 Workbench

Post by drmacro »

FWIW some comments and thoughts...

  • I have followed the development since I saw the announcement to see where it goes
  • I installed today with FC 0.20 (master source build today, with OCCT 7.6) the functions I tested seem to work as indicated
  • It may be a good option for those new users who are familiar Sketchup, it may feel more familiar
  • I will install it occasionally to see how it progresses, but, I don't find the tools something I'd add to my personal workflow
  • (Note: this is because I just don't think or design in the push/pull mode)
Side note: First thing I did was go to preferences looking for a way to turn off the &*$@ grid.
Umm...no preferences, ok, try GR to turn off like in Draft WB, nope.
Did I mention I hate grids? :mrgreen:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Post Reply