Questions tagged [freecad]

FreeCAD is a parametric 3D modeler. Parametric modeling allows you to easily modify your design by going back into your model history and changing its parameters. FreeCAD is open source (LGPL license) and completely modular, allowing for very advanced extension and customization. FreeCAD is multiplatfom, and reads and writes many open file formats such as STEP, IGES, STL and others.

FreeCAD is a parametric 3D modeler. Parametric modeling allows you to easily modify your design by going back into your model history and changing its parameters.

FreeCAD is open source (LGPL license) and completely modular, allowing for very advanced extension and customization. FreeCAD is multiplatfom, and reads and writes many open file formats such as STEP, IGES, STL and others.

91 questions
1
vote
1 answer

Fit a level set field to CAD data

I'm looking for software that can fit a signed distance function to a vector image or output from either AutoCAD or FreeCAD. Preferable CAD data because that output is 3D. I'm looking at coding something in either C or Python but I thought I'd…
crockski
  • 21
  • 1
1
vote
3 answers

How to access the name of a string converted into a variable?

I'm working with Python in FreeCAD and to add properties (adjustable variables) to an object we use: obj.addProperty("App::PropertyFloat","variable","variable label","variable explanation").variable = 2 Using a for loop I want to add multiple…
Roel
  • 35
  • 6
1
vote
1 answer

Cant import FreeCAD to Python

Im having a little problem when I try to import from a Python file, which is placed in an another folder, to FreeCAD. Python file location : c:/users/workspace/main.py FreeCAD : c:/program files (x86)/FreeCAD0.13/bin when I'm trying to import with…
Alchalade
  • 307
  • 1
  • 5
  • 14
0
votes
0 answers

Using FreeCAD Python Macros, Why does my macro pause when a sub-window/QDialog appears?

I am attempting to create an automation script/macro by going through the FreeCADGui and selecting the Button I want, like this: def click_toolbar_button(button_name, toolbar_name): mw = FreeCADGui.getMainWindow() # workbench =…
Josh R
  • 1
  • 1
0
votes
0 answers

Can FreeCAD be 'easily' imported into Anaconda-Spyder?

I have FreeCAD 0.20 installed on a Windows 10 machine and I have Anaconda and Spyder 5.2.2 (Python 3.9.13). I try and run: import sys path = 'C:\\Program Files\\FreeCAD 0.20\\bin' #this is the location of FreeCAD.pyd sys.path.append(path) import…
Nathan
  • 61
  • 4
0
votes
0 answers

Python's script increased work time in Freecad

So I have a 500kb json file that I just iterate (or build a tree in FreeCAD, doesn't matter) and print values in console. In normal Python it takes about 200ms to end the output, but in FreeCAD it takes 40 seconds, plus it outputs it instantly after…
Rekcah
  • 33
  • 3
0
votes
0 answers

Why does loading Freecad UI in new, "empty" document generate the error - : Active task dialog found

My research for this issue returned answers that confirmed that FreeCAD GUI (or Qt) does not allow multiple activeDialog instances and that while multiple dialogs could be implemented I do not need that, I only want to load one activeDialog. As I…
beachboy
  • 41
  • 7
0
votes
1 answer

How to align a part to the axes in Freecad?

I clicked on Cube in Freecad. A cube is created, but it is not at all aligned with the coordinate system (grid). How can I achieve this? When modifying either the Angular Deflection or Deviation value seen in the figure below, nothing happens and…
Karlo
  • 1,630
  • 4
  • 33
  • 57
0
votes
0 answers

What is the correct approach to create a custom machine shell using FreeCAD

I am new to FreeCAD, I've read some books, and the online help. I am trying to create a plastic shell for POS hardware, for 3d printing, a non-perfect cube shallow piece of plastic, with some holes and shelves on it, and inside it, plus some…
Sam Washington
  • 626
  • 4
  • 12
0
votes
1 answer

Using OpenGl code to the FreeCAD COIN3D scene?

I would like to be able to use OpenGL inside the QuarterWidget, FreeCAD use to glue Coin3D to OpenCascade scene. I can retrieve the following objects via python: def GetQuarterWidget(self): #From FreeCAD forum views = [] …
Ku Mu
  • 21
  • 6
0
votes
0 answers

How to represent mesh using vertices and indices only?

Im working on openrave and I converted xml to json file. My xml contains a mesh and when it was converted to json, it only used ‘vertices’ and ‘indices’ which were already flattened! Vertices = [23, 62, 66, 23, 88, 22, …] indices = [1, 2, 3, 4,…
0
votes
2 answers

pass multiple commands for FreeCADCmd.exe with python

how to pass multiple commands for FreeCADCmd.exe with python? For example this commands: import FreeCAD import Part import Mesh shape = Part.Shape() shape.read('my_shape.step') doc = App.newDocument('Doc') pf =…
0
votes
1 answer

FreeCAD import error while using Spyder "ImportError: DLL load failed while importing FreeCAD: The specified procedure could not be found."

My FreeCAD software runs on Windows 10. Its built-in Python console uses Python 3.8. In order to import its modules to an external Python, I created a Python3.8 environment in anaconda and the module can be successfully imported with Jupyter…
YUG
  • 1
0
votes
2 answers

most recent freecad version on manjaro

Freecad in manjaro repository is quite old. Build from 2021/04/15. Do you know how to install newer version without manual build? I see that there is a new version in arch repo https://archlinux.org/packages/community/x86_64/freecad/ can i use it?
skoczo
  • 75
  • 1
  • 12
0
votes
0 answers

Saving coordinates of svg inner/outer stroke

I would like to turn a set of SVG connected points into an enclosed area that I can import to 3d modelling software such as FreeCAD. Right now I have a shape such as |---| ---| | | | |---| I would like it to be an enclosed loop…
ansonl
  • 786
  • 1
  • 13
  • 34