Determine the type of file I have open using a Fusion 360 "Python" script

Determine the type of file I have open using a Fusion 360 "Python" script

isocam
Collaborator Collaborator
346 Views
1 Reply
Message 1 of 2

Determine the type of file I have open using a Fusion 360 "Python" script

isocam
Collaborator
Collaborator

Can anybody help?

 

Does anybody know how I can determine what type of file I currently have open (eg that I am currently working on) using a Fusion 360 "Python" script.

 

I could have three different types of file open. This could be an assembly, part or drawing. 

 

All I need, for testing purposes only, is a "Python" script that shows a message box stating "Assembly", "Part" or "Drawing", depending on what type pf file I am currently working on (I have open on screen)

 

Many thanks in advance!!!

 

Darren

0 Likes
347 Views
1 Reply
Reply (1)
Message 2 of 2

goyals
Autodesk
Autodesk

Fusion does not have the different file formats for Assembly and Part designs but drawing is a different file format. There is file Extension property available on data file object which can help to distinguish between design file and drawing file i.e f3d and f2d respectively. 
https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-B55EAEEE-40D7-44C3-AD39-A8A6BD24306B



Shyam Goyal
Sr. Software Dev. Manager
0 Likes