Search found 49 matches

Go to advanced search

by gflorent
Thu Nov 15, 2018 3:21 pm
Forum: Developers corner
Topic: Minor issue : dot becomes underscore in part or body name
Replies: 13
Views: 763

Re: Minor issue : dot becomes underscore in part or body name

Thanks for your answer. I makes me realize that there might be some info missing in my initial post: On Windows 10: FreeCAD 0.17 build 13528 On Ubuntu 18.04 VM: FreeCAD from realthunder's assembly3 branch, compiled from sources. I assumed that the different OS was the reason for the different behavi...
by gflorent
Thu Nov 15, 2018 1:18 pm
Forum: Developers corner
Topic: Minor issue : dot becomes underscore in part or body name
Replies: 13
Views: 763

Minor issue : dot becomes underscore in part or body name

When renaming a body or a part inside a document. If the name contains a '.' (dot), the dot is replaced by a '_' (underscore) on Linux but remains a '.' (dot) on Windows. Is that intentional? The issue is that if I want to name a body 'body_name_M2.5', I end up with 'body_name_M2_5' on Linux. It is ...
by gflorent
Sat Nov 03, 2018 8:17 pm
Forum: Assembly
Topic: Assembly3 preview
Replies: 1377
Views: 126372

Re: Assembly3 preview

Hi Rene. I had the same problem with the asm3 Windows version, adding some workbenches to Mod made the ASM3 WB disappear. Try to move the workbenches in Mod to a backup folder somewhere else. Yet, do no ask me why ...
by gflorent
Fri Sep 28, 2018 9:53 am
Forum: Developers corner
Topic: FreeCAD to PythonOCC and back
Replies: 6
Views: 425

Re: FreeCAD to PythonOCC and back

Ok, thanks a lot for the info. So I have to find a way to build FreeCAD with OCE, actually with the same OCE that was used to build PythonOCC. Will try ...
by gflorent
Wed Sep 26, 2018 11:03 am
Forum: Developers corner
Topic: FreeCAD to PythonOCC and back
Replies: 6
Views: 425

Re: FreeCAD to PythonOCC and back

I think your on Ubuntu? Well, my little experiment was done on Windows 10 using a 0.17-13528 prebuilt. I also have a compiled version on ubuntu (see https://github.com/balloonfish/freecad-asm3-install/blob/master/sh_install/u18.04/install_freecad_asm3.sh for the compilation script) that uses occt (...
by gflorent
Tue Sep 25, 2018 11:09 pm
Forum: Developers corner
Topic: FreeCAD to PythonOCC and back
Replies: 6
Views: 425

FreeCAD to PythonOCC and back

I think It used to be delivered with FreeCAD out of the box, but OCC imports from the FreeCAD Python Console does not seem to work anymore. So I copied a working Python 2 PythonOCC to the bin/Lib/site-packages folder of my 0.17 FreeCAD install. import OCC -> works import OCC.<any OCC module> -> fail...
by gflorent
Mon Sep 03, 2018 5:45 pm
Forum: Developers corner
Topic: External full Python WB Unit Tests
Replies: 16
Views: 853

Re: External full Python WB Unit Tests

Yes, you can add your tests to the Test WB without changing its source. However, a few things must be polished a bit to improve the integration. Assuming you have a module called MyTest which resides in the Mod directory then you can do the following things: Create a file __init__.py Create a direc...
by gflorent
Wed Aug 29, 2018 2:26 pm
Forum: Developers corner
Topic: External full Python WB Unit Tests
Replies: 16
Views: 853

Re: External full Python WB Unit Tests

2. Is it possible to add a test suite for an external WB to the Test WB (without editing the Python code in the Test WB of the installed FreeCAD) or should the usual test runners from a testing framework be used? Yes, you can add your tests to the Test WB without changing its source. However, a few...
by gflorent
Mon Aug 27, 2018 7:02 pm
Forum: Developers corner
Topic: External full Python WB Unit Tests
Replies: 16
Views: 853

Re: External full Python WB Unit Tests

Maybe we can combine both. The tests ran from the test runner could either check automatically that placement and other properties are as expected or display a dialog where you can click OK or NOT OK based on what you see and controlling the test result. What do you think?
by gflorent
Mon Aug 27, 2018 6:35 pm
Forum: Developers corner
Topic: Getting rid of print
Replies: 19
Views: 890

Re: Getting rid of print

Reading this thread, I came to think of the particular issue of 'print' statements in a wider context. As a newby to FreeCAD (the good side is I have a new eye, the other side being having a lot to learn), but with a longer experience with Python and development in general, my opinion is that a 'Dos...

Go to advanced search