Compare commits

..

5 Commits

Author SHA1 Message Date
Jeremy Wright
e022192bb5
Update README.md 2020-05-25 09:22:47 -04:00
Jeremy Wright
6d52e47725
Merge pull request #143 from easyw/master
fixing error on startup CQ_Logo.svg does not exists issue #140
2019-10-03 16:54:35 -04:00
easyw
419f514951 fixing error on startup CQ_Logo.svg does not exists
fixing error on startup CQ_Logo.svg does not exists
https://github.com/jmwright/cadquery-freecad-module/issues/140
2019-10-03 22:49:38 +02:00
Jeremy Mack Wright
9ee734bc65 Fixed the script location environment variables not getting exported when running CQGI-compliant script. 2019-05-28 17:02:09 -04:00
Jeremy Wright
59bbbc3958
Merge pull request #136 from jmwright/kill-pyqode
Kill pyqode
2018-12-29 06:32:45 -05:00
3 changed files with 12 additions and 1 deletions

View File

@ -162,6 +162,10 @@ class CadQueryExecuteScript:
if b"show_object(" in scriptText or b"debug(" in scriptText:
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
cqModel = cqgi.parse(scriptText)

View File

@ -11,9 +11,14 @@ import CadQuery_rc
class CadQueryWorkbench (Workbench):
"""CadQuery workbench for FreeCAD"""
"""CadQuery workbench for FreeCAD"""
import os
try:
from . import module_locator
except:
import module_locator
MenuText = "CadQuery"
ToolTip = "CadQuery workbench"
Icon = ":/icons/CQ_Logo.svg"
Icon = module_locator.module_path()+"/CQGui/Resources/icons/CQ_Logo.svg"
#Keeps track of which workbenches we have hidden so we can reshow them
closedWidgets = []

View File

@ -5,6 +5,8 @@ The CadQuery Module for FreeCAD
## 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.
![User Interface](https://github.com/jmwright/cadquery-freecad-module/blob/master/docs/cqfm_user_interface.png)