Search found 4883 matches

by openBrain
Thu Dec 03, 2020 11:08 am
Forum: Forum français
Topic: j'ai du faire une bêtise esquisse perdu.
Replies: 4
Views: 55

Re: j'ai du faire une bêtise esquisse perdu.

Bienvenue. Il faut fournir le fichier FreeCAD et les infos complètes de la version utilisée. Voir le lien dans la bannière rouge. ;)
by openBrain
Wed Dec 02, 2020 8:51 pm
Forum: Python scripting and macros
Topic: Open files with characters that FC apparently doesnt like
Replies: 9
Views: 168

Re: Open files with characters that FC apparently doesnt like

Hmm. Unfortunately I have no computer right now. Maybe 'splitlines' has to be used with 'read' instead of 'open'. Will check later and report back.
by openBrain
Wed Dec 02, 2020 7:29 pm
Forum: Python scripting and macros
Topic: Open files with characters that FC apparently doesnt like
Replies: 9
Views: 168

Re: Open files with characters that FC apparently doesnt like

In any case, I did have to add back the rstrip() because I use ls -1 *.FCStd > FC_file_list.txt to generate the file list and it leaves an LF on each line, causing the open to fail (could be I just know the pythonic way to read line without the EOL character... :oops: ) I admit I didn't test the co...
by openBrain
Wed Dec 02, 2020 4:21 pm
Forum: Python scripting and macros
Topic: How to judge the type of model?
Replies: 3
Views: 86

Re: How to judge the type of model?

freecadlzh wrote:
Wed Dec 02, 2020 1:06 pm
Any other way to code this ?
What are you trying to code ? Do you want to identify only boxes ? Or any Part primitive ? Or any 3D object ?
by openBrain
Wed Dec 02, 2020 12:46 pm
Forum: Python scripting and macros
Topic: Open files with characters that FC apparently doesnt like
Replies: 9
Views: 168

Re: Open files with characters that FC apparently doesnt like

'openDocument' returns a pointer to the document object. import FreeCAD as App filepath = "/home/mac/Downloads/FreeCAD/" list = "FC_file_list.txt" filelist = open(filepath+list, 'r') for afile in filelist: print(afile) doc = FreeCAD.openDocument(filepath + afile) doc.save() App.closeDocument(doc.Na...
by openBrain
Wed Dec 02, 2020 12:38 pm
Forum: Python scripting and macros
Topic: How to judge the type of model?
Replies: 3
Views: 86

Re: How to judge the type of model?

I don't know why it's better to use this rather than ooo.TypeId, but you can do this with :

Code: Select all

if "'PrimitivePy'" in str(type(ooo)):
by openBrain
Wed Dec 02, 2020 12:32 pm
Forum: Help on using FreeCAD
Topic: Text String Q?
Replies: 4
Views: 98

Re: Text String Q?

Hi, could you try each character separately to see if one is bringing some confusion in FreeCAD ?
by openBrain
Wed Dec 02, 2020 12:26 pm
Forum: Open discussion
Topic: Help regarding future development, for sole purpose and contribution
Replies: 2
Views: 127

Re: Help regarding future development, for sole purpose and contribution

1) I would like to know what tools are required to develop/update any new feature, especially when I am focusing on Part Design and Sketcher WB? You basically need a compiler and a piece of software to edit the files. :) 2) Does CodeLite and Qt, sufficient for development of any feature or whole WB...
by openBrain
Wed Dec 02, 2020 12:19 pm
Forum: Forum français
Topic: création d'une vidéo tutoriel
Replies: 2
Views: 94

Re: création d'une vidéo tutoriel

Avec ses mains... :roll: Il faudrait au moins qu'on sache sous quel OS tu travailles...
by openBrain
Tue Dec 01, 2020 6:20 pm
Forum: Help on using FreeCAD
Topic: No help required (yet)
Replies: 2
Views: 84

Re: No help required (yet)

Welcome on board.