Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Certain parts of PTC's software have never changed since it came out on UNIX systems decades ago. Unix does not allow spaces in file names so PTC does not. Obviously since PTC no longer supports any version of Unix or Linix, they could rewrite that portion of the code but it works "good enough" as is so they don't bother. I think it is the same with the file name lengths. They have always had a 32 character limit, I think it is self imposed since the versions of Unix I used did not have that limit. Heck, remember DOS? File names were restricted to 8.3 characters. At least Mr. Bill saw the error of his ways and improved that.
In Reply to Scott Rockwell:
Did you ever wonder why ... ?
Whenever I create a PDF file from a drawing file with the PTC maximum file name length and I want to increase the length by adding "-rev_X" Creo always disallows it with an error message "Invalid Name. Filename is too long".
Why should Creo care at this point? I'm wanting to export to PDF format. Print to file will cause the same error.
[Quantum]
Scott Rockwell hardware engineering
720.249.5752 | Scott.Rockwell@Quantum.com< | Quantum.comhttp://www.quantum.com
[Quantum.com]<
This was the official response I received (10/2014, sorry for the delay) from PTC as a result of my original posting. To Mathew, I say thank you. This is the first time in 20 years I've seen PTC react directly to user inputs in a timely manner. My hats off to you!
A good day to you all,
I saw the discussion "[proecad] - RE: Why does Creo 2.0 care how long the file name is when creating a PDF" on the exploder, and followed up internally, as there didn't seem to be an SPR on the issue.
In ancient times, Creo (then Pro/ENGINEER) had a limit of 31 characters on file names. Over time, we found we wanted to support various external types which should not have this limit, and so the large table (some 450 entries) of known file types had a field for the maximum length. Types that naturally should not be limited beyond the maximal length of full paths (such as .csv, .igs/.iges, .set, .dxf, etc.) had their entries updated to remove the limitation, and code that dealt with these names checked to ensure we weren't using a too-small fixed buffer to store the name. This process is as we notice them, either internally or from a customer filing an SPR.
To date, .pdf had not been updated, until the exploder discussion brought it to my attention. Fortunately, the person in charge of .pdf export was able to quickly confirm that it would be safe to remove the length limitation on our understanding of the .pdf file type, so I've made an internal SPR and prepared this change. Pending testing results coming back okay, you should see it in Creo 2 M140 and Creo 3 M020.
If you see any similar cases in future, of external-to-PTC file types for which Creo has an unreasonable name length restriction, please do not hesitate to report it to Support, so we can improve the software.
Yours,
Matthew Ender
VP of Technology
PTC