FreeCAD python object not being entering execute.

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
keithsloan52
Veteran
Posts: 2764
Joined: Mon Feb 27, 2012 5:31 pm

FreeCAD python object not being entering execute.

Post by keithsloan52 »

I have a number of FreeCAD python objects implemented, but with one the execute function does not get entered. I am struggling to see why
as things are very similar in all implementations, so looking for suggestions on how to track the problem down.
User avatar
yorik
Founder
Posts: 13659
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: FreeCAD python object not being entering execute.

Post by yorik »

Most obvious reason would be that the object (the python class) is not properly set as the object's Proxy. Check that the obj.Proxy property actually contains your python class. Usually that is done by setting obj.Proxy = self in the classes __init__.py function
keithsloan52
Veteran
Posts: 2764
Joined: Mon Feb 27, 2012 5:31 pm

Re: FreeCAD python object not being entering execute.

Post by keithsloan52 »

yorik wrote: Thu Jul 11, 2019 2:47 pm Most obvious reason would be that the object (the python class) is not properly set as the object's Proxy. Check that the obj.Proxy property actually contains your python class. Usually that is done by setting obj.Proxy = self in the classes __init__.py function
Thanks but obj.Proxy = self is already in __init__.py function Any other ideas?
Post Reply