Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Running a Script thru a post

rviveirosFL2FX
Explorer

Running a Script thru a post

rviveirosFL2FX
Explorer
Explorer

Is it possible or has anyone been able to run thru a script either python or C++ thru a .cps file?  

0 Likes
Reply
352 Views
3 Replies
Replies (3)

Marek_Skotak
Advocate
Advocate

Good question, I've tried it many ways and not with good results. I'll join your question here 🙂 .

Postprocessor writer, CNC trainer, .NET programmer, www.cadcam-softcz.cz
0 Likes

boopathi.sivakumar
Autodesk
Autodesk

Hi @rviveirosFL2FX 

What you are trying to do running with the python script? Is it fusion api script or something else? 


Boopathi Sivakumar
Senior Technology Consultant

0 Likes

rviveirosFL2FX
Explorer
Explorer

Hello Boopathi,

 

I wrote a script that can export a model as a .STL from the Fixture bodies in a setup in Manufacture workspace.  The script gives you the ability to translate the .STL in X, Y, Z and it will allow you name the file and choose your location for saving.  

rviveirosFL2FX_1-1717506787028.png

 

I wanted to do this with my custom .cps file that i use to export data to an external verification software.  So i was hoping to have it be an option the user can choose to do by a post property (export fixture in below screenshot using X, Y, Z offset) instead of having to run a script through the Add-ins.  

The script works well but i wasn't able to call it up thru the .cps while Post Processing but I thought it would be great to know if it's possible to call a script thru a .cps file while post processing because you could do a lot of things with that!

 

rviveirosFL2FX_2-1717507042775.png

 

 

0 Likes