04-04-2023
12:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-04-2023
12:59 PM
Not sure if it is 100% what you are after, but I output this:
(POSTED FROM FILE=10048-M1-M2.MC1.IAM) (which is an Inventor file).
I get that output with this code:
var inventorFileName = FileSystem.getFilename(getGlobalParameter("document-path"));
writeComment("POSTED FROM FILE=" + inventorFileName);
Similar to your code, but it gets it from FileSystem... This also works in Fusion, I use it there too, just change the variable name.
Fusion