Skip to content

Commit

Permalink
Merge pull request FreeCAD#20026 from PaddleStroke/patch-8
Browse files Browse the repository at this point in the history
Assembly: Fix use of datum axis in joints
  • Loading branch information
chennes authored Mar 6, 2025
2 parents dc084c0 + a67080a commit b864b46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Mod/Assembly/UtilsAssembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,13 @@ def findPlacement(ref, ignoreVertex=False):

if not elt or not vtx:
# case of whole parts such as PartDesign::Body or App/PartDesign::CordinateSystem/Point/Line/Plane.
if obj.TypeId == "App::Line":
if obj.Role == "X_Axis":
return App.Placement(App.Vector(), App.Rotation(0.5, 0.5, 0.5, 0.5))
if obj.Role == "Y_Axis":
return App.Placement(App.Vector(), App.Rotation(0.5, 0.5, 0.5, 0.5))
if obj.Role == "Z_Axis":
return App.Placement(App.Vector(), App.Rotation(-0.5, 0.5, -0.5, 0.5))
return App.Placement()

plc = App.Placement()
Expand Down

0 comments on commit b864b46

Please sign in to comment.