Search found 18 matches

Go to advanced search

by donjan
Thu Mar 14, 2019 2:26 pm
Forum: Python scripting and macros
Topic: Part::PythonFeature removeProperty fails to setExpression to None
Replies: 2
Views: 143

Part::PythonFeature removeProperty fails to setExpression to None

FreeCAD 0.17 13541 (Git) on Ubuntu 18.04. The following code illustrates a problem with using FeaturePython objects as parameter buckets and deleting a leaf dependency parameter. doc = FreeCAD.ActiveDocument p1 = doc.addObject("App::FeaturePython", "params1") p2 = doc.addObject("App::FeaturePython",...
by donjan
Thu Jan 24, 2019 4:23 pm
Forum: Python scripting and macros
Topic: FreeCAD 0.18 Python3 bindings
Replies: 2
Views: 353

Re: FreeCAD 0.18 Python3 bindings

After purging the main repo package and installing from your PPA, I get: $ export PYTHONPATH=/usr/lib/freecad/lib && python3 Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. import FreeCAD FreeCAD 0.18, Libs: 0....
by donjan
Wed Jan 23, 2019 6:38 pm
Forum: Python scripting and macros
Topic: FreeCAD 0.18 Python3 bindings
Replies: 2
Views: 353

FreeCAD 0.18 Python3 bindings

Testing 0.18 from the daily repo on Ubuntu: $ export PYTHONPATH=/usr/lib/freecad-daily/lib && python3 Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import FreeCAD Traceback (most recent call last): File "...
by donjan
Sun Aug 26, 2018 7:32 pm
Forum: Help on using FreeCAD
Topic: Moderately simple file crashes FC 0.17
Replies: 5
Views: 186

Re: Moderately simple file crashes FC 0.17

Assuming your packagers push release builds into the PPAs, that's what I'm running with. Backtrace hangs waiting for FreeCAD, and the stack is gone if I kill it and then bt. So bt and then kill `pidof freecad`: Starting program: /usr/bin/freecad [Thread debugging using libthread_db enabled] Using ho...
by donjan
Sun Aug 26, 2018 12:52 pm
Forum: Help on using FreeCAD
Topic: Moderately simple file crashes FC 0.17
Replies: 5
Views: 186

Moderately simple file crashes FC 0.17

FreeCAD 0.17 (stable PPA version) on Ubuntu 18.04, with two different machines. The file contains one body with a couple of sketches and four pads, three additional sketches and one imported STL mesh. (1.7MB seems too large as forum attachment) http://caleo.dyx.ch/stuff/fcfile/spool_holder.fcstd Whe...
by donjan
Wed Jul 19, 2017 12:27 pm
Forum: Help on using FreeCAD
Topic: FC v0.17dev: Part Design Next Usecases and Best practices
Replies: 131
Views: 46798

Re: FC v0.17dev: Part Design Next Usecases and Best practices

Not sure if anything can be done in the context of this thread, but I'd like to throw in a use case: working on a nanometre scale. AFAICT FreeCAD is supposed to be scale agnostic, but there are several problems when designing models for nano devices. 1. As shown in my thread here , the sketcher seem...
by donjan
Wed Jul 12, 2017 2:28 pm
Forum: Help on using FreeCAD
Topic: sketch: weird external constraint offset
Replies: 2
Views: 279

Re: sketch: weird external constraint offset

I don't think I'm doing anything "special" here. All your dimensions are in "nm" i.e. nano metres. That may be your intention, and it should work properly but you certainly are doing something "special" in the sense that you are working at an unusually small scale. I guess that the issue is related...
by donjan
Wed Jul 12, 2017 1:57 pm
Forum: Help on using FreeCAD
Topic: sketch: weird external constraint offset
Replies: 2
Views: 279

sketch: weird external constraint offset

OS: Ubuntu 17.04 Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.17.11528 (Git) Build type: None Branch: master Hash: d31be3117de386b4f6cd3444e0b330db56dc6ba2 Python version: 2.7.13 Qt version: 4.8.7 Coin version: 4.0.0a OCC version: 7.1.0 I've had several files for which after a ske...
by donjan
Wed Jul 12, 2017 9:31 am
Forum: Help on using FreeCAD
Topic: Spreadsheet alias access
Replies: 8
Views: 918

Re: Spreadsheet alias access

Looks neat. A clean simple extract would be nice, thanks! For now, I don't use the property window editing: I'd have to add the property via console, then add =propertyname to a cell, then add 'propertyname to the left neighbour cell, for each property. Sure, part of that can be automated, but the g...
by donjan
Tue Jul 11, 2017 8:27 pm
Forum: Help on using FreeCAD
Topic: Spreadsheet alias access
Replies: 8
Views: 918

Re: Spreadsheet alias access

You can define your spreadsheet as a Spreadsheet::SheetPython and add the methods and properties you need To start ... Thanks, adding properties is a good idea. I can just take my snippet from above and say ss.addProperty("App::PropertyBool", "off", "Base",) The main issue is that the table cells a...

Go to advanced search