Giter Site home page Giter Site logo

Comments (6)

easyw avatar easyw commented on July 1, 2024

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.

easyw avatar easyw commented on July 1, 2024

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.

 avatar commented on July 1, 2024

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.

easyw avatar easyw commented on July 1, 2024

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.

 avatar commented on July 1, 2024

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.

easyw avatar easyw commented on July 1, 2024

Ok fine like that... No prob :)

from kicad-3d-models-in-freecad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.