From 9c5706dc1f922ecd593ea57a9c499c0ca0311e78 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 4 Jun 2016 21:07:19 +0200 Subject: o Adding a special 'Fit all' button. --- Boxer.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Boxer.py') diff --git a/Boxer.py b/Boxer.py index facb4e3..0319e43 100644 --- a/Boxer.py +++ b/Boxer.py @@ -363,11 +363,14 @@ def make(doc, cfg): doc.recompute() + crossSections = None if cfg.generateCrossSections: crossSections = makeCrossSections(doc, cfg, extrudes) crossSectionsGroup = doc.addObject("App::DocumentObjectGroup", "Cross Sections") [crossSectionsGroup.addObject(cs) for cs in crossSections.values()] + return {'parts': parts, 'extrudes': extrudes, 'crossSections': crossSections}; + def removeEverything(doc): def rm(name): if hasattr(doc, name): -- cgit v1.2.3