Get a list of Fusion 360 folders and save to a text file using Python

Get a list of Fusion 360 folders and save to a text file using Python

isocam
Collaborator Collaborator
620 Views
1 Reply
Message 1 of 2

Get a list of Fusion 360 folders and save to a text file using Python

isocam
Collaborator
Collaborator

Can anybody help?

 

Is it possible, using a Fusion 360 Python script, to get a list of "Job Files" folders and save the output to a text file that can be opened using "Notepad"?

 

In "Project" files I have several sub folders thus:

 

Drawing Templates

Job Files

Purchased Parts

Reference Parts

Standard Parts

 

In the Job Files folder I have over 100 sub folders. It is the list os sub folders that I need saving to a text file.

 

Many thanks in advance!!!!

 

Darren

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

kandennti
Mentor
Mentor
Accepted solution

Hi @isocam .

 

Here, @JeromeBriot  has created a script to export all the files in the data panel.

https://forums.autodesk.com/t5/fusion-360-api-and-scripts/access-file-tree-structure/m-p/10375458#M1... 

 

If you refer to that, I think it is possible to write out the list in the desired folder to a text file.

0 Likes