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
0 answers

Using Point-Density-Function to model holes in FreeCAD Model

I am designing a Part for an Experiment, which is basically a sheet of some sort with holes cut into it. The holes need to be spaced out according to some measurements, where the amount of holes in the middle needs to be larger than the holes along…
1
vote
0 answers

Is it possible to embed Blender/Freecad in a python program?

I am writing a program using python, in which some 3D plot functions are needed like importing OBJ files, view 3d objects in different views and so on I know Blender and Freecad can work with python. Is it possible to embed them into a pure python…
Ray Lee
  • 11
  • 3
1
vote
0 answers

How can I create an image from a STEP file in python

I currently have a python script using the freecad API to read a step file and send some data to an excel file (volume, dimensions, etc.) with xlwings. I would like to also add a view of the STEP file. Is there a way using python to get an image…
Chsir17
  • 629
  • 1
  • 7
  • 18
1
vote
0 answers

Could NOT find Boost (missing: python) on macOS

ERROR INF: -- Could NOT find Boost (missing: python) (found version "1.71.0") I've tried everything I found in here, and nothing works. Here is what I've done: Firstly, I've installed boost, boost_python and boost_python3 through brew…
Joseph lzd
  • 41
  • 4
1
vote
0 answers

Giving the total amount at the end of script Error

BACKGROUND: I am writing a macro python script for FreeCAD. This code opens a dialog which gives information on sketch geometries such as matrix of inertia and area. MY ISSUE: I am trying to get the total amount of area at the end of a script.…
1
vote
0 answers

Python script to insert LCSs and additional models in FreeCad Assembly 4

For each model I want to insert multiple LCSs at fixed points. I have enough to insert the LCS itself and set an offset. But the LCS also needs a point to reference. Does anybody know the script to add the reference point (in the GUI it's listed…
rkazi44
  • 11
  • 1
1
vote
0 answers

python xml.etree conditional crash (FreeCAD/console)

I'm trying to figure out what the difference is to two cases of using ElementTree.parse. In one case it crashes, but not in the other. Case one FreeCAD; Inside FreeCAD's python console I have the following: Python 3.6.10 (default, Jan 16 2020,…
Torben
  • 51
  • 4
1
vote
1 answer

Import FreeCAD to Python to use in external Script

I am currently working on a Projekt to get data from FreeCAD to use in an external script. My FreeCAD installation: OS: Windows 10 Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.18.4 (GitTag) Build type: Release Branch:…
pcmkr929
  • 63
  • 6
1
vote
2 answers

Incude FreeCAD in system path for just one conda virtual environment

I want to be able to import FreeCAD into my python scripts, but only in one conda virtual environment. Is there a way to do this without adding FreeCAD to the path at the beginning of each file? I am using Pop!_OS, which should behave like Ubuntu…
fyodrpetrovich
  • 135
  • 1
  • 7
1
vote
0 answers

Is there a solution to automatically rotate an .STEP file with the corresponding Script Python?

I would like to get the rotation on the X,Y,Z axis and the position of a .STEP object on FreeCAD, and also get screenshots in every position of the object with Python Scripts of FreeCAD. I saw that we can do it manually (I'm a real beginner on…
1
vote
3 answers

Create single mesh for multiple bodies in GMSH

I am currently trying to do a magnetostatic FEM simulation and I want to mesh my geometry using GMSH. The geometry is shown below: in I create the geometry using FreeCAD and import into GMSH as a .STEP File. In GMSH I define 3 physical groups,…
Mantabit
  • 269
  • 1
  • 4
  • 14
1
vote
1 answer

Running FreeCAD module drawing_dimensioning or TechDrawGui from python script

Note - I'm not running a script in the python console inside FreeCAD. This is all in a python script in a docker container with FreeCAD installed. I'm trying to make an SVG of a page generated by FreeCAD running in a python script. I have views of a…
Richard
  • 336
  • 4
  • 12
1
vote
1 answer

Show point labels next to them in FreeCAD

I want to create some points in FreeCAD and have their labels displayed next to them. My final goal is to implement this feature request I placed in OpenFOAM repo. I tried creating some points in draft workbench and label them…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
1
vote
0 answers

Converting standart objects to App::FeaturePython in Freecad

I want to be able to add custom properties to objects in Freecad. I was able to add it via "obj.addProperty()", but it works only on objects of type "App::FeaturePython". When I try it on, for example "PartDesign::Pad", I get this error:…
Josef Kvita
  • 156
  • 1
  • 13
1
vote
1 answer

accessing values within a callback function

I'm a bit of an self-uneducated programming bungler, so please forgive the abysmal coding and general ignorance. I'm using FreeCAD which has an API to access a point in a CAD model. class mySnapper: def __init__(self): self.point = None def…
Dave Coventry
  • 129
  • 4
  • 11