bug of array of polar

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
bagwechien
Posts: 1
Joined: Mon Jul 04, 2022 2:48 pm

bug of array of polar

Post by bagwechien »

When I use array function , if the type set linear1D or 2D, It can work, but , if I'm set type to polar, and put any number to copies,It would be wrong.
in report window display below

File "C:\Program Files\FreeCAD 0.20\Mod\Path\PathScripts\PathArray.py", line 310, in execute
obj.Path = pa.getPath()
File "C:\Program Files\FreeCAD 0.20\Mod\Path\PathScripts\PathArray.py", line 478, in getPath
np = self.rotatePath(b.Path.Commands, ang, self.centre)
<class 'AttributeError'>: 'PathArray' object has no attribute 'rotatePath'

Image
someone can solve it ?

Freecad Version: 0.2
OS.Win10
Russ4262
Posts: 941
Joined: Sat Jun 30, 2018 3:22 pm
Location: Oklahoma
Contact:

Re: bug of array of polar

Post by Russ4262 »

Afternoon.
Welcome to the forum! Looks like this is a regression from when I refactored the module a while back, in PR #4818 git commit edc358a4a1b2a5b9102dcf23d5f802c613c2f2d4. Fix is active in the PR cue, #7137 Path: Fix Type=Polar regression in PathArray.

I will also suggest this PR for backport to 0.20.x.

Many thanks for reporting!

Russell

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.29434 +11 (Git)
Build type: Release
Branch: master_prs
Hash: 7007fc82c3e7a53608d47fd9c2f65d22fb23b5e3
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods: 
  * FC_SU
  * Z_MacroStartup
Post Reply