Skip to content

Attempt to manipulate resulted in strange behavior #50

@dannystaple

Description

@dannystaple

I selected an origin ZY plane of one object, and an origin ZY plane of another. I wanted to align these. In the align on box, I had unticked the Y and Z axes.

Use part/body heirarchy was ticked.

Versions/OS

FreeCAD version 1.0.0 on Windows 11.
Manipulator Workbench says 1.6.0.

OS: Windows 11 build 26100
Architecture: x86_64
Version: 1.0.0.39109 (Git) Conda
Build type: Release
Branch: (HEAD detached at 1.0.0)
Hash: 2fcc5317fe3aee96ca73475986a577719fc78e20
Python 3.11.10, Qt 5.15.15, Coin 4.0.3, Vtk 9.3.0, OCC 7.8.1
Locale: English/United Kingdom (en_GB)
Stylesheet/Theme/QtStyle: FreeCAD Light.qss/FreeCAD Light/Fusion
Installed mods: 
  * ExplodedAssembly
  * fasteners 0.5.38
  * kicadStepUpMod 11.6.9
  * Manipulator 1.6.0
  * Telemetry 1.0.1

What I expected?

The two bodies, to whom these planes belonged to align such that the planes were coplanar (same X coordinate).

What happened

I see this in the console:

16:59:21  Align clicked
16:59:21  centering on Center of Mass
16:59:21  Aligning Planes
16:59:21  position written float/350/300/302/362
16:59:21  100
16:59:21  number of objects: 2
16:59:21  obj: YZ_Plane
16:59:21  Placement: Placement [Pos=(0,0,0), Yaw-Pitch-Roll=(90,6.36111e-15,90)]
16:59:21  obj: YZ_Plane002
16:59:21  Placement: Placement [Pos=(0,0,0), Yaw-Pitch-Roll=(90,6.36111e-15,90)]
16:59:21  j= 0
16:59:21  len selEx 2
16:59:21  Traceback (most recent call last):
16:59:21    File "C:\Users\danny\AppData\Roaming\FreeCAD\Mod\Manipulator\.\Aligner.py", line 909, in onAlign
16:59:21      Align(normal,type,mode,cx,cy,cz)
16:59:21    File "C:\Users\danny\AppData\Roaming\FreeCAD\Mod\Manipulator\.\Aligner.py", line 1862, in Align
16:59:21      FreeCAD.ActiveDocument.testCircle.Angle0=0.000
16:59:21      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16:59:21  AttributeError: 'PrimitivePy' object has no attribute 'Angle0'

A new object appeared, in my object tree, testCircle. It was not attached to any body. I don't appear to be able to delete these from the UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions