Search found 79 matches

by JOE_FU
Thu May 07, 2020 8:06 am
Forum: Developers corner
Topic: How to change the code so that the model can add attributes like ‘a $ b’?
Replies: 1
Views: 427

How to change the code so that the model can add attributes like ‘a $ b’?

Hi, everyone. These days I want to add a new feature to FreeCAD software, that is, you can use the addProperty method to add property names that contain certain special characters, such as a $ b. I read the code and may need to understand the bison related knowledge, but I am not familiar with it. C...
by JOE_FU
Wed Mar 25, 2020 4:32 am
Forum: Developers corner
Topic: Translating external workbenches
Replies: 58
Views: 19647

Re: Translating external workbenches

alex.zhang wrote: Thu Mar 12, 2020 3:31 am Same issue in Arch Module. Arch_AxisTools as example.

I found all menu (group) with sub menus not translated.
I encountered the same problem, can't the group name be translated?
by JOE_FU
Wed Mar 25, 2020 12:33 am
Forum: Open discussion
Topic: How to translate my new workbench?
Replies: 2
Views: 598

Re: How to translate my new workbench?

vocx wrote: Tue Mar 24, 2020 10:27 pm
JOE_FU wrote: Tue Mar 24, 2020 11:40 am

Code: Select all

    def Initialize(self):
        self.LoadAll(self)
        FreeCADGui.updateLocale()
It seems you may have to update the locale.

Translating external workbenches
Yes, i did this but still no effect.
by JOE_FU
Tue Mar 24, 2020 11:40 am
Forum: Open discussion
Topic: How to translate my new workbench?
Replies: 2
Views: 598

How to translate my new workbench?

Hi, everyone. I recently created a new workbench and hope to translate the options on my menu bar. But I have been unsuccessful. import FreeCADGui,FreeCAD from DraftTools import translate import TestMenu_rc def QT_TRANSLATE_NOOP(scope, text): return text class CustomWorkbench(Workbench): def __init_...
by JOE_FU
Fri Feb 28, 2020 1:41 am
Forum: Help on using FreeCAD
Topic: Model turns black.
Replies: 12
Views: 1563

Re: Model turns black.

On loading your model I get lots of messages <string>(1)<class 'ModuleNotFoundError'>: No module named 'Modeling' <string>(1)<class 'ModuleNotFoundError'>: No module named 'Modeling3DCommand' You seem to use some third party workbench. Yes it is. But i don't think it matters.
by JOE_FU
Thu Feb 27, 2020 1:47 pm
Forum: Help on using FreeCAD
Topic: Model turns black.
Replies: 12
Views: 1563

Re: Model turns black.

papyblaise wrote: Thu Feb 27, 2020 8:05 am can you upload your file :?:
https://www.dropbox.com/s/0j510kgzizc6r ... FCStd?dl=0
by JOE_FU
Thu Feb 27, 2020 1:47 pm
Forum: Help on using FreeCAD
Topic: Model turns black.
Replies: 12
Views: 1563

Re: Model turns black.

Kunda1 wrote: Thu Feb 27, 2020 1:31 pm
JOE_FU wrote: Thu Feb 27, 2020 8:18 am I would love to do this, but the file is too large to upload.
Upload to a 3rd party hosting service
google, dropbox etc...
https://www.dropbox.com/s/0j510kgzizc6r ... FCStd?dl=0
by JOE_FU
Thu Feb 27, 2020 8:18 am
Forum: Help on using FreeCAD
Topic: Model turns black.
Replies: 12
Views: 1563

Re: Model turns black.

papyblaise wrote: Thu Feb 27, 2020 8:05 am can you upload your file :?:
I would love to do this, but the file is too large to upload.
by JOE_FU
Thu Feb 27, 2020 7:44 am
Forum: Help on using FreeCAD
Topic: Model turns black.
Replies: 12
Views: 1563

Re: Model truns black.

chrisb wrote: Thu Feb 27, 2020 7:24 am Is there a recompute missing? Check the result with Part->CheckGeometry. Look for coplanar faces.
Hi, thanks for your reply.
Is it like this?
by JOE_FU
Thu Feb 27, 2020 7:03 am
Forum: Help on using FreeCAD
Topic: Model turns black.
Replies: 12
Views: 1563

Re: Model truns black.

When I use fuse function to combine two models, the models turn black suddenly . Project files are in the attachment. I use the following python statement to trigger this problem. >>> o1=FreeCAD.ActiveDocument.ResultShape >>> o2=FreeCAD.ActiveDocument.ManBo3 >>> s=o1.Shape.fuse(o2.Shape) >>> Part.s...