Compare commits
No commits in common. "master" and "kill-pyqode" have entirely different histories.
master
...
kill-pyqod
|
@ -162,10 +162,6 @@ class CadQueryExecuteScript:
|
||||||
if b"show_object(" in scriptText or b"debug(" in scriptText:
|
if b"show_object(" in scriptText or b"debug(" in scriptText:
|
||||||
FreeCAD.Console.PrintMessage("Executing CQGI-compliant script.\r\n")
|
FreeCAD.Console.PrintMessage("Executing CQGI-compliant script.\r\n")
|
||||||
|
|
||||||
# Set some environment variables that may help the user
|
|
||||||
os.environ["MYSCRIPT_FULL_PATH"] = cqCodePane.get_path()
|
|
||||||
os.environ["MYSCRIPT_DIR"] = os.path.dirname(os.path.abspath(cqCodePane.get_path()))
|
|
||||||
|
|
||||||
# A repreentation of the CQ script with all the metadata attached
|
# A repreentation of the CQ script with all the metadata attached
|
||||||
cqModel = cqgi.parse(scriptText)
|
cqModel = cqgi.parse(scriptText)
|
||||||
|
|
||||||
|
|
|
@ -11,14 +11,9 @@ import CadQuery_rc
|
||||||
class CadQueryWorkbench (Workbench):
|
class CadQueryWorkbench (Workbench):
|
||||||
"""CadQuery workbench for FreeCAD"""
|
"""CadQuery workbench for FreeCAD"""
|
||||||
"""CadQuery workbench for FreeCAD"""
|
"""CadQuery workbench for FreeCAD"""
|
||||||
import os
|
|
||||||
try:
|
|
||||||
from . import module_locator
|
|
||||||
except:
|
|
||||||
import module_locator
|
|
||||||
MenuText = "CadQuery"
|
MenuText = "CadQuery"
|
||||||
ToolTip = "CadQuery workbench"
|
ToolTip = "CadQuery workbench"
|
||||||
Icon = module_locator.module_path()+"/CQGui/Resources/icons/CQ_Logo.svg"
|
Icon = ":/icons/CQ_Logo.svg"
|
||||||
|
|
||||||
#Keeps track of which workbenches we have hidden so we can reshow them
|
#Keeps track of which workbenches we have hidden so we can reshow them
|
||||||
closedWidgets = []
|
closedWidgets = []
|
||||||
|
|
|
@ -5,8 +5,6 @@ The CadQuery Module for FreeCAD
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
**NOTE** This workbench is not compatible with CadQuery 2.x. If you are looking for a CadQuery 2.x GUI, please use [CQ-editor](https://github.com/CadQuery/CQ-editor).
|
|
||||||
|
|
||||||
This is a FreeCAD module (aka workbench) that adds elements like a CadQuery code editor. All of the required libraries are embedded with the workbench, and so it is probably the fastest way to get up and running with CadQuery on a local computer. For users who just want to try CadQuery without installing anything, the [CadQuery Jupyter Notebook](https://mybinder.org/v2/gh/RustyVermeer/tryCQ/master) might be a better choice.
|
This is a FreeCAD module (aka workbench) that adds elements like a CadQuery code editor. All of the required libraries are embedded with the workbench, and so it is probably the fastest way to get up and running with CadQuery on a local computer. For users who just want to try CadQuery without installing anything, the [CadQuery Jupyter Notebook](https://mybinder.org/v2/gh/RustyVermeer/tryCQ/master) might be a better choice.
|
||||||
|
|
||||||

|

|
||||||
|
|
Loading…
Reference in New Issue
Block a user