StartTranscriptingCommand

StartTranscriptingCommand

kandennti
Mentor Mentor
661 Views
2 Replies
Message 1 of 3

StartTranscriptingCommand

kandennti
Mentor
Mentor

There are interesting CommandIDs available in CommandDefinitions.

 

"StartTranscriptingCommand"
"StopTranscriptingCommand"

 

It feels like writing out the contents of the operation as Script, but it does not work well.
(Please be careful when executing. Fusion360 may stop.)

 

import adsk.core, traceback

def run(context):
    ui = None
    try:
        cmdId = 'StartTranscriptingCommand'
        
        ui  = adsk.core.Application.get().userInterface
        
        cmd = ui.commandDefinitions.itemById(cmdId)
        cmd.execute()
        
    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))

 

Does anyone have any information?
Thank you in advance.

Accepted solutions (1)
662 Views
2 Replies
Replies (2)
Message 2 of 3

goyals
Autodesk
Autodesk
Accepted solution

These commands are really not meant for use for external developers and use by fusion internally. Thanks.



Shyam Goyal
Sr. Software Dev. Manager
Message 3 of 3

kandennti
Mentor
Mentor

OK.
If we can record a script, we believe that the burden of developing a script can be reduced. It is very disappointing.

0 Likes