Search found 2764 matches

by keithsloan52
Sat Apr 20, 2019 6:50 pm
Forum: Developers corner
Topic: Disappearing post.
Replies: 9
Views: 1007

Disappearing post.

Thought I made a post to this forum and now seems to have disappeared - what is going on
by keithsloan52
Sat Apr 20, 2019 4:54 pm
Forum: UX/UI Design
Topic: Looking for Graphics Designer for GDML workbench.
Replies: 52
Views: 14091

Looking for Graphics Designer for GDML workbench.

Wondering if there is somebody with Graphic Design skills that could produce the relevant SVG files for my GDML workbench. The workbench is on Github at https://github.com/KeithSloan/FreeCAD_Python_GDML Eventually I will need icons for all the possible GDML solids as per http://geant4-userdoc.web.ce...
by keithsloan52
Fri Apr 12, 2019 5:57 am
Forum: Python scripting and macros
Topic: Changing a properties backgound colour.
Replies: 1
Views: 247

Changing a properties backgound colour.

Would like to submit a feature request for the ability to change an objects property colour via a API call. And like it advises about submitting a feature request, I am supposed to check in the forum that such a facility does not already exist. The reason is that for the GDML workbench I am working ...
by keithsloan52
Fri Apr 12, 2019 5:46 am
Forum: Help on using FreeCAD
Topic: Selecting from Document Window.
Replies: 1
Views: 373

Re: Selecting from Document Window.

Okay found that selecting a face also selects an object in the combo view.
by keithsloan52
Thu Apr 11, 2019 7:50 pm
Forum: Python scripting and macros
Topic: Loop on Part::FeaturePython onChanged
Replies: 4
Views: 750

Re: Loop on Part::FeaturePython onChanged

onChanged is supposed to fire whenever any property changes. .Shape is a property, so if execute() writes the shape, onChanged should be called. As a quick fix, check if prop == 'Shape': return . Or, even better, check against the list of properties you want auto-update to happen, like prop in ['Na...
by keithsloan52
Thu Apr 11, 2019 5:27 pm
Forum: Python scripting and macros
Topic: Loop on Part::FeaturePython onChanged
Replies: 4
Views: 750

Loop on Part::FeaturePython onChanged

I am not 100% certain but under the impression that this has only started happening since FreeCAD 18.01 and Python3. Believe it was working on FreeCAD 17 and Python 2.7 I am getting a loop when an onChanged function is called as a result of a changed property. It calls execute to recreate the shape ...
by keithsloan52
Thu Apr 11, 2019 5:33 am
Forum: Python scripting and macros
Topic: Error messages with user Python Defined object types.
Replies: 6
Views: 888

Re: Error messages with user Python Defined object types.

Asked in StackExchange and got advised to code as follows for inheritance.

Learn something new everyday

Code: Select all

class GDMLBox(GDMLcommon) :
   def __init__(self, obj, x, y, z, lunit, material):
      '''Add some custom properties to our Box feature'''
      print ("GDMLBox init")
by keithsloan52
Wed Apr 10, 2019 8:39 pm
Forum: Python scripting and macros
Topic: Error messages with user Python Defined object types.
Replies: 6
Views: 888

Re: Error messages with user Python Defined object types.

Okay I have tried adding __getstate__ and __setstate__ functions but still getting the messages. It might be I have not done it correctly though. As I have a large number of such PythonObjects I tried the following approach class GDMLcommon : def __init__(self, obj): '''Init''' def __getstate__(self...
by keithsloan52
Tue Apr 09, 2019 3:49 pm
Forum: Python scripting and macros
Topic: Error messages with user Python Defined object types.
Replies: 6
Views: 888

Error messages with user Python Defined object types.

In the GDML workbench I am trying to develop I make heavy use of Python Defined Objects and Groups. Things seem to work okay, but if I leave the created document open after a time with me not doing anything and FreeCAD not doing anything I get a lot of errors reported. i.e. seems to be caused by ina...
by keithsloan52
Tue Apr 09, 2019 3:23 pm
Forum: Help on using FreeCAD
Topic: Selecting from Document Window.
Replies: 1
Views: 373

Selecting from Document Window.

I spend most of my time programming rather than using FreeCAD and would like some advice on some basics When Viewing a document rather than object creation (i.e. Zooming In/Out, Rotating etc) what navigation style do people prefer recommend? Is there a way to select an object in the document view an...