Comments (6)
It would be perfect to be added to _tools dir...
Probably as a standalone file I think...
Thx for your additions!!!
Maurice 😄
from kicad-3d-models-in-freecad.
would you mind also to have a look at this commit:
e69ec53
I removed the old way to check if CQ is available, to be complaint with the add-on installer of FC that will place a folder named cadquery_module instead of CadQuery...
in main_generator.py there is already a check:
try:
# Gui.SendMsgToActiveView("Run")
from Gui.Command import *
Gui.activateWorkbench("CadQueryWorkbench")
import cadquery as cq
from Helpers import show
# CadQuery Gui
except: # catch all exceptions
msg="missing CadQuery 0.3.0 or later Module!\r\n\r\n"
msg+="https://github.com/jmwright/cadquery-freecad-module/wiki\n"
reply = QtGui.QMessageBox.information(None,"Info ...",msg)
# maui end#checking requirements
checkRequirements(cq)
thx
from kicad-3d-models-in-freecad.
Thanks @easyw I will submit a PR to add my code.
About your commit - I have resynced from your master so that change is in my fork. Did you want me to do anything else about it?
from kicad-3d-models-in-freecad.
your are fine Thx 😄
just check if you have removed too the old way to check CQ presence...
have a look i.e. in my main_generator.py from line 119 to line 133
in your main_generator.py I see the old method from line 122 to line 140
Thx again
M
from kicad-3d-models-in-freecad.
Got it now - thanks 😄 I will update that in my main_generator.py
files.
Moving ribbon.py
is not as easy as I thought. Works OK when I run main_generator.py
because it sets the relative path to _tools
. But when I run the model .py
file from within CQ (as when developing and testing), FreeCAD copies it to a temp folder so the path doesn't work. I can fix it by including a full path in the model file, but I don't like that solution 😞
So maybe I will leave ribbon.py
where it is.
from kicad-3d-models-in-freecad.
Ok fine like that... No prob :)
from kicad-3d-models-in-freecad.
Related Issues (20)
- python2 should die HOT 1
- Hard-coded paths in python scripts HOT 1
- Using the scripts with CADquery 1.2.0 and FreeCAD 0.18.3 HOT 3
- Using the scripts with CADquery 1.2.0 and FreeCAD 0.18.4 HOT 26
- Best way to add a new 3D model? HOT 5
- Support JST SMD connectors and SH Series
- SM resistors HOT 1
- BRepSweep_Translation error with epad line HOT 4
- DFN generator fails in FreeCAD 0.19 HOT 1
- Exception while processing file: main_generator.py [global name 'math' is not defined] HOT 3
- Buzzer_Beeper generator: Black screen in FC 0.18 HOT 2
- metric fuses HOT 5
- Problems running the scripts HOT 8
- move more stuff inside _tools ? HOT 1
- Add option for origin offset to scripts
- bugfix HOT 1
- Resistor_THT script can omit lead bends HOT 7
- Feedback concerning an often faced KiCad StepUp issue HOT 1
- Need PinSocket_1x08_2.54mm_Stacking for shields
- ./main_generator.py [No module named '_tools']
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kicad-3d-models-in-freecad.