Maximum string length?

Maximum string length?

Electrik
Advocate Advocate
319 Views
2 Replies
Message 1 of 3

Maximum string length?

Electrik
Advocate
Advocate

I'm using iLogic to auto-save a PDF of an open file to a specific directory. I'm using string variables to piece together the new file path. That new string (as a variable) is 136 characters. It seems to be truncating my path to 119 characters. Does that sound right? Is there a limitation in place, or could I have something else going on?

Yes, I know that's a lot of characters. I'm trying to get that shortened in the first place.

My back-up plan is to create more, shorter strings to add together with "var1 & var2 & var3", etc...

Thanks!

Inventor Professional 2021
Vault Professional 2021
0 Likes
320 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

Hi @Electrik.  According to Microsoft's own website for the String Class, "The maximum size of a String object in memory is 2-GB, or about 1 billion characters."  So, I don't think it is a limitation of the data type itself.  It is more likely a limitation of the computer system or server's file system.  There is definitely a set limit on how long a file path & name can be.  If you are using 'mapped drive' letters, you may be missing out on the true full file path, because the true path will go all the way up to the main file server.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

Electrik
Advocate
Advocate

haha - 1 billion characters - yes, I  should be okay, there.

Thanks for the insight - it helps steer me to the next step in my diagnosis.

Inventor Professional 2021
Vault Professional 2021
0 Likes