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

Post Processor - CAD file name as a comment including file name extensions

So in the HSM Post Forum I found how to add the CAD file as a comment, however that does not fully accomplish what I needed as I would like to see the extensions of the file I used as well. I am using Creo files that end in .prt.VersionNumber, as in .prt.1 for version 1 or prt.15 for version 15.

 

I can see on the side window that it sees the extension names, I am hoping I can include this on the NC file as well.

constantin3x_0-1680535638136.png

This is the code I found and works fine but for the importing the CAD file name but it does not include any extensions.

//file name
var documentPath = getGlobalParameter("document-path");
writeComment(documentPath);

 

Does anyone know if its possible?