04-03-2023
08:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-03-2023
08:31 AM
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.
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?
Fusion