Skip to content

Commit

Permalink
Merge pull request #256 from tolot27/cq-example
Browse files Browse the repository at this point in the history
fix CQGui import and window closing
  • Loading branch information
easyw authored Jan 1, 2019
2 parents 2cb2e11 + 3a2bf68 commit f2fe173
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The repo will have models starting from a FreeCAD project modeled in mm with a s

# REQUIREMENTS
- [x] FreeCAD 0.17
- [x] CadQuery 1.0.0
- [x] CadQuery 1.2.0

If you would like to share your models, I'll be happy to add these to the 3D repo!!! :)

Expand Down
8 changes: 1 addition & 7 deletions cadquery/cq-ex2.FCMacro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import FreeCAD, Draft, FreeCADGui
import Idf
import ImportGui

from Gui.Command import *
from CQGui.Command import *

#Gui.SendMsgToActiveView("Run")
Gui.activateWorkbench("CadQueryWorkbench")
Expand All @@ -19,12 +19,6 @@ import FreeCADGui as Gui
import cadquery
from Helpers import show

#close the example
App.setActiveDocument("Ex000_Introduction")
App.ActiveDocument=App.getDocument("Ex000_Introduction")
Gui.ActiveDocument=Gui.getDocument("Ex000_Introduction")
App.closeDocument("Ex000_Introduction")

#Getting the main window will allow us to start setting things up the way we want
mw = FreeCADGui.getMainWindow()

Expand Down

0 comments on commit f2fe173

Please sign in to comment.