ThreadProfile icon indicating copy to clipboard operation
ThreadProfile copied to clipboard

Cannot create long screw

Open crncrn opened this issue 2 years ago • 3 comments

Hi,

It is not possible to create long screw.

Repro steps:

  1. Create VthreadProfile
  2. set Presets to M4 fine 0.5
  3. set High to 30mm
  4. create helix
  5. create thread profile by threadprofile workbench sweep

as result there is something strange - screen attached. image

FreeCAD version:

[code] OS: Windows 10 Version 2009 Word size of FreeCAD: 64-bit Version: 0.20.2.29177 +426 (Git) Build type: Release Branch: (HEAD detached from 0.20.2) Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8 Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3 Locale: Polish/Poland (pl_PL) Installed mods:

  • A2plus 0.4.60k
  • Assembly4 0.12.6
  • Curves 0.6.8
  • ExplodedAssembly
  • fasteners 0.4.55
  • freecad.gears 1.0.0
  • lattice2 1.0.0
  • Manipulator 1.5.0
  • ThreadProfile 1.84.0 [/code]

crncrn avatar Mar 18 '23 23:03 crncrn

Thanks for the report. It seems to be some regression in Part Design Additive Pipe. The reason I conclude this is it works fine in 0.19. It also works fine using the Part Workbench Sweep in my somewhat dated version of 0.21, which it will do if you don't have an active body in the document. It also works if you use the additive helix in Part Design. I don't think the problem is in the workbench because just using the profile object and making the sweep manually using the tools in Part Design also fails for 30 mm height, but works for 10 mm height.

Workaround 1: Don't create a body in Part Design. Instead just make the thread outside of any body, which causes it to use the Part workbench Sweep tool instead, which works.

Workaround 2: Use workaround 1, but then add it to a new body as a BaseFeature. This will allow to continue working in Part Design. Note: another option for importing solids into a PD Body is to use my macro PDWrapper. But PDWrapper is a complicated tool to use.

Workaround 3: Use the Additive Helix in Part Design instead of the Additive Pipe. To do this, make your VThreadProfile object as before, but don't bother making a Helix. Select the VThreadProfile object, click the Additive Helix tool in Part Design, then set the Pitch to what it shows it needs to be in the VThreadProfile object (0.5 in this case) and set the Height to 30. You also need to change from vertical sketch axis to something else, I think it was sketch normal. Note: the workbench was created before there was such a thing as the Additive Helix tool.

Workaround 4: Install Fasteners workbench and create the thread there.

mwganson avatar Mar 19 '23 17:03 mwganson

Thanks! 3th workaround works!

crncrn avatar Mar 19 '23 21:03 crncrn

I confirm this still happens on version 1.87.0.

OS: Debian GNU/Linux trixie/sid (i3/i3)
Word size of FreeCAD: 64-bit
Version: 0.20.2.
Build type: Release
Python 3.11.1, Qt 5.15.8, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Assembly4 0.50.2
  * ThreadProfile 1.87.0

rockstorm101 avatar Jun 18 '23 11:06 rockstorm101