Skip to content

Commit

Permalink
BIM: ArchWall use moveGeometry to move sketch point
Browse files Browse the repository at this point in the history
The movePoint function is no longer available in V1.1.
  • Loading branch information
Roy-043 authored and yorikvanhavre committed Jan 16, 2025
1 parent 201eca4 commit e7e41bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/BIM/ArchWall.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def onChanged(self, obj, prop):
elif Draft.getType(obj.Base) in ["Sketcher::SketchObject", "ArchSketch"]:
try:
obj.Base.recompute() # Fix for the 'GeoId index out range' error.
obj.Base.movePoint(0, 2, obj.Base.Placement.inverse().multVec(p2))
obj.Base.moveGeometry(0, 2, obj.Base.Placement.inverse().multVec(p2))
except Exception: # This 'GeoId index out range' error should no longer occur.
print("Debug: The base sketch of this wall could not be changed, because the sketch has not been edited yet in this session (this is a bug in FreeCAD). Try entering and exiting edit mode in this sketch first, and then changing the wall length should work.")
else:
Expand Down

0 comments on commit e7e41bb

Please sign in to comment.