[ArchWall] Use and Create ArchSketch if add-on is present: following Yorik's comment

(~ 17.10.2022) https://github.com/FreeCAD/FreeCAD/pull/7526#discussion_r997010867
This commit is contained in:
Paul Lee
2022-10-23 11:33:24 +08:00
parent 72bca3193d
commit c24004e130

View File

@@ -434,6 +434,7 @@ class _CommandWall:
if FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Arch").GetBool("WallSketches",True):
# Use ArchSketch if SketchArch add-on is present
try:
import ArchSketchObject
FreeCADGui.doCommand('import ArchSketchObject')
FreeCADGui.doCommand('base=ArchSketchObject.makeArchSketch()')
except: