Search found 20144 matches

by wmayer
Sat Mar 26, 2011 3:46 pm
Forum: Developers corner
Topic: Unicode in macros
Replies: 6
Views: 2433

Re: Unicode in macros

So, I have implemented these redirection classes for Python outputs and set them when running a script. Afterwards they'll be removed again. A nice side-effect is the Windows users will also see the print statements because formerly they disappeared in hyperspace. It's part of the 0.12 version. BTW,...
by wmayer
Sat Mar 26, 2011 1:47 pm
Forum: Developers corner
Topic: Unicode in macros
Replies: 6
Views: 2433

Re: Unicode in macros

The problem appeared to be the sys.stdout instance whose write() method has problems when getting a unicode string. So, when replacing the instance with something own like: class test: def write(self, arg): pass # just do nothing sys.stdout=test() the problem disappeared. So, the problem is raised s...
by wmayer
Sat Mar 26, 2011 10:46 am
Forum: Developers corner
Topic: Unicode in macros
Replies: 6
Views: 2433

Re: Unicode in macros

When executing a script from within the editor we use the Python function PyRun_SimpleFile. Thus, I have prepared this little test application #include <Python.h> #include <stdio.h> int main(int argc, char *argv[]) { char* name = "Qt example"; Py_SetProgramName(name); Py_Initialize(); PySy...
by wmayer
Sat Mar 26, 2011 9:14 am
Forum: Developers corner
Topic: 0.11 Release planing
Replies: 169
Views: 25455

Re: 0.11 Release planing

maybe i'm too late for the 0.11 release, but there are some texts still showing in english, but 100% are translated at crowdin. Some of the texts are in english if i choose other 100% translated languages (italian, norwegian and spanish) The point is that for many translated text the English text i...
by wmayer
Sat Mar 26, 2011 9:09 am
Forum: Install / Compile
Topic: compilation relies on .la files for opencascade
Replies: 7
Views: 2143

Re: compilation relies on .la files for opencascade

Ok so finally, it was not opencascade related, but it was required to run the make clean target on FreeCAD sources so that it removes all previous references to the old opencascade... Good that this is solved now. Otherwise it might be an indication for a wrong libtool version as mentioned here: ht...
by wmayer
Fri Mar 25, 2011 8:57 pm
Forum: Install / Compile
Topic: compilation relies on .la files for opencascade
Replies: 7
Views: 2143

Re: compilation relies on .la files for opencascade

No, .a files are static archives, .la files are text files which contain information about a library e.g. which other libraries it depends on, version information and much more. Then .o files normally are object files for static libraries while object files for dynamic libraries have the extension ....
by wmayer
Fri Mar 25, 2011 3:11 pm
Forum: Forum in Deutsch
Topic: DFX-Export von Ansicht einer STEP-Datei
Replies: 11
Views: 10240

Re: DFX-Export von Ansicht einer STEP-Datei

Habe gerade gesehen, dass man das mit Python schon machen kann. Beispiel: shape = App.ActiveDocument.getObject("Name des Objektes").Shape vector = App.Vector(x,y,z) # Richtungsvektor angeben import Drawing,Part project=Drawing.project(shape,vector) # oder project=Drawing.projectEx(shape,ve...
by wmayer
Fri Mar 25, 2011 2:47 pm
Forum: Developers corner
Topic: Unicode in macros
Replies: 6
Views: 2433

Re: Unicode in macros

Question: when a python file sets the utf-8 coding must it itself also been in utf-8, i.e. that in the file the bom (0xef, 0xbb, 0xbf) http://de.wikipedia.org/wiki/Byte_Order_Mark is set? When experimenting with this snippet here: FreeCAD.Console.PrintMessage(u'H\xc3\xa9 !\n') # works FreeCAD.Consol...
by wmayer
Fri Mar 25, 2011 2:40 pm
Forum: Forum in Deutsch
Topic: DFX-Export von Ansicht einer STEP-Datei
Replies: 11
Views: 10240

Re: DFX-Export von Ansicht einer STEP-Datei

Ich habe aus dem TIFF über über die Kantenerkennung eine Vektorgrafik gemacht. Sonst erzeugt InkScape eine leere dxf-datei Ich hatte ja schon eine SVG-Datei also alles vektorisiert... Wie auch immer es macht auf jeden Fall wenig Sinn, das über zwei, drei Austausch-Formate zu realisieren, weil (zumi...
by wmayer
Fri Mar 25, 2011 1:59 pm
Forum: Developers corner
Topic: 0.11 Release planing
Replies: 169
Views: 25455

Re: 0.11 Release planing

Whats with Linux? You guys can do a source package and trigger the debian package maintainer? Do we make also a debian binary package ourself?? I am in email contact with the Debian maintainer and he asked me two months ago for a new version :) Do we make also a debian binary package ourself?? If n...