Code: Select all
# -*- coding: utf-8 -*- # Macro Begin: C:\Users\...\AppData\Roaming\FreeCAD\Macro\merges4.FCMacro +++++++++++++++++++++++++++++++++++++++++++++++++ import FreeCAD import Sketcher # Gui.runCommand('Std_DlgMacroRecord',0) # Gui.Selection.addSelection('ninja','Body','Sketch.') # Gui.Selection.addSelection('ninja','Body','Sketch018.') ### Begin command Sketcher_MergeSketches App.activeDocument().addObject('Sketcher::SketchObject', 'Sketch019') App.activeDocument().ActiveObject.Placement = App.activeDocument().Sketch.Placement App.activeDocument().recompute() ### End command Sketcher_MergeSketches # Macro End: C:\Users\...\AppData\Roaming\FreeCAD\Macro\merges4.FCMacro +++++++++++++++++++++++++++++++++++++++++++++++++
Adding constraints to B-splines may help with tangencies or coincidences on the endpoints, but note that you cannot use point-on-object or similar on the inner part of a spline.krisky wrote: ↑Tue Sep 14, 2021 12:30 am Thanks, I'll try it. I also found what is probably a better way, since I am trying to create a fairly complex path with a number of spline sections, importing this as SVG into Draft and converting to a sketch works well (although I suspect I may still need to add some constraints after, as Part Design doesn't seem to recognise the edges somehow). Thanks for your help!