Is it safe to have only a CommandCreated handler?

Is it safe to have only a CommandCreated handler?

quality5B59E
Contributor Contributor
667 Views
1 Reply
Message 1 of 2

Is it safe to have only a CommandCreated handler?

quality5B59E
Contributor
Contributor

 

Is it safe to do things in the CommandCreated handler instead of installing

an Execute handler and doing it there?   I imagine the transaction stuff gets

bypassed but for simple things is it safe?

 

 

class HomePoseCommandCreatedHandler(adsk.core.CommandCreatedEventHandler):
    def __init__(self):
        super().__init__()              
    def notify(self, args):
# do simple command here instead of installing Execute handler move_to_home_pose()
0 Likes
Accepted solutions (1)
668 Views
1 Reply
Reply (1)
Message 2 of 2

goyals
Autodesk
Autodesk
Accepted solution

I do not think it is mandatory to have a commandExecuteHandler. Please take a look at this example http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-e5c4dbe8-ee48-11e4-9823-f8b156d7cd97 but as you already mentioned the things done as part of command would not be persisted.



Shyam Goyal
Sr. Software Dev. Manager