GithubHelp home page GithubHelp logo

Comments (15)

jmwright avatar jmwright commented on June 2, 2024 1

@selvakarna Assuming you're running Ubuntu, you can follow the instructions here to add the FreeCAD stable PPA. Once you're followed the instructions there, you can just run sudo apt-get install freecad.

from cadquery-freecad-module.

jmwright avatar jmwright commented on June 2, 2024

@selvakarna I'm not sure that CadQuery 1.0, which is what's bundled with this workbench, is capable of exporting a surface to a STEP file. If you want to export a volume, here is an example from the tests that shows the syntax. You could try it with a surface, I'm just not sure if it will work properly.

You could always generate the model, then export it using FreeCAD's File > Export menu option.

The majority of the community has moved to CadQuery 2.0, and that's where most effort will be placed from now on. You might want to consider switching to it.

from cadquery-freecad-module.

selvakarna avatar selvakarna commented on June 2, 2024

Hi @jmwright , i don't wont menu option and all, i m asking supporting python scripts ?

from cadquery-freecad-module.

jmwright avatar jmwright commented on June 2, 2024

@selvakarna The code below works for me.

import cadquery as cq

shape = cq.Workplane("XY").box(1, 1, 1)

shape.val().exportStep("/home/jwright/Downloads/mymodel.step")

from cadquery-freecad-module.

selvakarna avatar selvakarna commented on June 2, 2024

Okay thank you @jmwright , i will update you ..........

from cadquery-freecad-module.

selvakarna avatar selvakarna commented on June 2, 2024

Hi @jmwright , when i import cadquery i got error :

Error:
import FreeCAD
ImportError: dynamic module does not define module export function (PyInit_FreeCAD)

so how to install FreeCAD? i have always installed freecad ? not like FreeCAD?

from cadquery-freecad-module.

selvakarna avatar selvakarna commented on June 2, 2024

windows also showing error?

can you share just commands :

how to install FreeCAD package in windows flatform ? you dont know?????????????//

from cadquery-freecad-module.

jmwright avatar jmwright commented on June 2, 2024

@selvakarna I asked you questions on the second issue you created related to this: #144

I need more information.

Are you trying to run this script with Python 3? Are you running your script from within FreeCAD, or on the command line? What version of FreeCAD are you using? You can start the FreeCAD GUI and go to Help > About FreeCAD

Does "windows also showing error" mean that the error happens in the Windows operating system as well as another? Is the other operating system Linux?

from cadquery-freecad-module.

selvakarna avatar selvakarna commented on June 2, 2024

@jmwright , Can you share FreeCAD Version with Python Version compatibility for installation, with WINDOWS & Linux OS.

from cadquery-freecad-module.

selvakarna avatar selvakarna commented on June 2, 2024

I have installed cadquery 2.3.1 in Linux Machine ? when i import cadquery its show error ?

Error:

import cadquery
Traceback (most recent call last):
File "/home/hp/.local/lib/python3.6/site-packages/cadquery/freecad_impl/init.py", line 151, in
import FreeCAD
ModuleNotFoundError: No module named 'FreeCAD'

So, what solution to solve this ?

from cadquery-freecad-module.

jmwright avatar jmwright commented on June 2, 2024

It should work with FreeCAD 0.17, 0.18 and 0.19, and Python 2 and Python 3, but 0.19 is still in development so it's changing, and each OS can act differently.

When you run which freecad on your Linux system, what does it show?

from cadquery-freecad-module.

selvakarna avatar selvakarna commented on June 2, 2024

Hi @jmwright , when i import cadquery package , i get following error

Python 3.6.8 (default, Aug 20 2019, 17:12:48)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import cadquery
Traceback (most recent call last):
File "/home/hp/.local/lib/python3.6/site-packages/cadquery/freecad_impl/init.py", line 151, in
import FreeCAD
ModuleNotFoundError: No module named 'FreeCAD'

During handling of the above exception, another exception occurred:

from cadquery-freecad-module.

selvakarna avatar selvakarna commented on June 2, 2024

Hi @jmwright , Can you Please share FreeCAD installation producer PIP python using commands.

from cadquery-freecad-module.

selvakarna avatar selvakarna commented on June 2, 2024

@jmwright , i followed above your instruction , but after that above installation i get some error, please check this below error.

Error:

Python 3.6.8 (default, Aug 20 2019, 17:12:48)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import freecad
import cadquery
Traceback (most recent call last):
File "/home/hp/.local/lib/python3.6/site-packages/cadquery/freecad_impl/init.py", line 151, in
import FreeCAD
ModuleNotFoundError: No module named 'FreeCAD'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/home/hp/.local/lib/python3.6/site-packages/cadquery/init.py", line 2, in
from .freecad_impl.geom import Plane,BoundBox,Vector,Matrix,sortWiresByBuildOrder
File "/home/hp/.local/lib/python3.6/site-packages/cadquery/freecad_impl/init.py", line 155, in
import FreeCAD
ImportError: dynamic module does not define module export function (PyInit_FreeCAD)

from cadquery-freecad-module.

jmwright avatar jmwright commented on June 2, 2024

@selvakarna If you run which freecad from the terminal, what does it show?

from cadquery-freecad-module.

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.