Hello!
I need to be able to cut in a mesh.
The funktion is in the mesh design WB. I have installed the SCAD program and configurated it acording to FreeCad hompage.
The problem is when i use the "diference" cuting tool i got this message:
Any ides how i can fix this?
Wery thankful for help whith this issue
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Swedish/Sweden (sv_SE)
Problem with Mesh cutting and SCAD
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Problem with Mesh cutting and SCAD
can you show us what you have configured and what version of openscad you have installed? what instructions did you follow?
Re: Problem with Mesh cutting and SCAD
Absolutly!
here is the instruktions i used (and the config i did in freecad):
https://wiki.freecadweb.org/Import_OpenSCAD_code
Open SCAD version:
OpenSCAD version 2021.01
here is the instruktions i used (and the config i did in freecad):
https://wiki.freecadweb.org/Import_OpenSCAD_code
Open SCAD version:
OpenSCAD version 2021.01
Re: Problem with Mesh cutting and SCAD
dunno what is going on, but...
- you seem to have non-ascii chars / spaces in your install / filepaths
- -o might be the typical "outputfile" arg, however based on the screen it looks like it is freecad that is called and not scad, weird...
logging does not seem to give any output on mesh commands...
anyhow, if you know a minimum of python you can probably figure out this by yourself
(going out on a limb here and guessing it is related to your specific computer..., installation or naming in one way or another...)
this is printed in the py console when making a mesh-bool
so you can just find that .py file on your installation (like ?/FreeCAD/Mod/OpenSCAD), copy the functions needed into a macro-file, put in some strategic printing on paths or scad calls, run the macro, and if the calls do not work when you run them yourself from a console they wont work from fc either...
(or just put in the prints in the original file and use the commands as usual, but then you have to restart fc every time you change the .py file - or reload it)
btw, in OpenSCADUtils there are functions that you can use that should raise their hand if it cannot find the scad.exe properly.
or if you don't want to bother to chase it down, do it manually, i.e. export the files to disk from fc, do the bool in scad gui, export from there and reimport to fc.
- you seem to have non-ascii chars / spaces in your install / filepaths
- -o might be the typical "outputfile" arg, however based on the screen it looks like it is freecad that is called and not scad, weird...
logging does not seem to give any output on mesh commands...
anyhow, if you know a minimum of python you can probably figure out this by yourself
(going out on a limb here and guessing it is related to your specific computer..., installation or naming in one way or another...)
this is printed in the py console when making a mesh-bool
Code: Select all
>>> import OpenSCADUtils
>>> mesh = OpenSCADUtils.meshoptempfile('difference',(App.ActiveDocument.Cube.Mesh,App.ActiveDocument.Sphere.Mesh))
(or just put in the prints in the original file and use the commands as usual, but then you have to restart fc every time you change the .py file - or reload it)
btw, in OpenSCADUtils there are functions that you can use that should raise their hand if it cannot find the scad.exe properly.
or if you don't want to bother to chase it down, do it manually, i.e. export the files to disk from fc, do the bool in scad gui, export from there and reimport to fc.
Re: Problem with Mesh cutting and SCAD
Tnx for the help.
Im in a hurry so i try doing it in the SCAD GUI for now. and trubleshoot acc to yor instruktion later on.
Im in a hurry so i try doing it in the SCAD GUI for now. and trubleshoot acc to yor instruktion later on.
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Problem with Mesh cutting and SCAD
I meant, can you show us what path you have configured in your pc
I only now noticed this, and it's very likely the cause for the error. @Blownaway can you test using freecad 0.20? I think several bugs with special characters in paths were solved during the dev cycle. If it sill doesn't work please test creating a new user with just latin characters.