API -import machine simulation file

API -import machine simulation file

ben
Explorer Explorer
203 Views
2 Replies
Message 1 of 3

API -import machine simulation file

ben
Explorer
Explorer

Hi all,

Does the Fusion API have a command to import machine simulation files?

 

thanks & regards,

Ben

0 Likes
204 Views
2 Replies
Replies (2)
Message 2 of 3

rohit_maneYV8C9
Autodesk
Autodesk

Hello @ben ,
I might’ve misunderstood what you meant, but I think we can import a .mch or .f3d file with this command. Please let me know if you're looking for something else.

machineInput = adsk.cam.MachineFromFileInput.create(filePath)
# machineInput.ignoreSimulationModel = False

just make sure the filePath is expected to be an absolute path to the machine file on disk.

Message 3 of 3

ben
Explorer
Explorer

Hi Rohit,

Thank you for your help. My main goal is actually to protect the machine simulation files. I want to set up the machine simulation for the customer and then input it into Fusion via the API. However, it seems that machine simulation files cannot be imported across hubs — they must first be manually uploaded to my own hub. Is there any solution to this?

 

Ben

0 Likes