Syntax or examples of scripts done with the Textcommands

Syntax or examples of scripts done with the Textcommands

kymC6Q8L
Enthusiast Enthusiast
455 Views
1 Reply
Message 1 of 2

Syntax or examples of scripts done with the Textcommands

kymC6Q8L
Enthusiast
Enthusiast

Hello,

 

odd question, i know textcommands are some what deprecated in favour of using the python api.

I have taken a look through this amazing list: https://github.com/kantoku-code/Fusion360_Small_Tools_for_Developers/blob/master/TextCommands/TextCo...

I was wondering if somone could point me to some examples or some od docs that show the syntax or examples of using the textcommands in a script?

 

Cheers
Kym

0 Likes
Accepted solutions (1)
456 Views
1 Reply
Reply (1)
Message 2 of 2

kandennti
Mentor
Mentor
Accepted solution

Hi @kymC6Q8L .

 

There is probably no official information about text commands.

 

I have left what I have found out by trying it out in these two pieces.

https://forums.autodesk.com/t5/fusion-360-api-and-scripts/use-textcommands/m-p/9645688 

https://forums.autodesk.com/t5/fusion-360-api-and-scripts/use-textcommands2/m-p/9937161 

 

The other useful description is this one that @thomasa88 found for me.

https://forums.autodesk.com/t5/fusion-360-api-and-scripts/access-section-analysis/m-p/9700491#M11052 

 


You can find some specific examples in the forum by searching for "executeTextCommand".
The only thing left to do is to look at the list of commands and try them in the GUI.

 

I forgot to mention that the characters output to the text command window can be obtained as the return value of the executeTextCommand method.

0 Likes