Hi all,
Would it be possible for me to use a pen table, text substitution, named expression combination in order to text substitute the windows short path of the dgn location I am printing from?
If possible, I would like text substitution result to look something similar to:C:\PROGRA~2\MICROS~2\Office15\INFOPA~1\INFOPA~3\INFOPA~1\dgnnumber.dgn
I have limited space available for the path, in the border (dictated by client standards), and my companies standards make the path quite long.To add an additional wrinkle, the files are located on a network drive.
Unfortunately, FileL , FileA , and FileSdo not give me the results I am looking for.I am definitely open to alternative suggestions, but If possible I would like to avoid VBA to avoid software changes outside of MicroStation effecting functionality.
The closest answer I have come up with is to truncate the path using this named expression:
IIf (System.String.Length (PrintDefinition.SourceFile) > 70, System.String.Substring (PrintDefinition.SourceFile, System.String.Length (PrintDefinition.SourceFile) - 70, -1),PrintDefinition.SourceFile)
But the above has the drawbacks of loosing critical drive location information on the left end of the path.
Currently, we are using MicroStation V8i (SELECTseries 3) - Version 08.11.09.459
Thanks for your help in advance,
Chris
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Thank you,
Roland Cyr
CE Update 7 - Version 10.07.00.39
I suppose you have tried smaller font to put the full long path?
Seems a bit strange that you have to do this as it wont mean anything when the client gets the files in cad because it will change when they store them elsewhere, but I have a sneaky low down dirty fix for your prints..
put
C:\PROGRA~2\MICROS~2\Office15\INFOPA~1\INFOPA~3\INFOPA~1\
or whatever its meant to be (it cant start with c:\ right was just example)
as text in front of but not part of $FileS$
The end result will look like what you want not perfect but heck if it cant be done what do they your masters expect...
you do this only in the title block ref file so its global and save a copy of the xref title block in the same folder as these drawings live so it doesnt change the one you use for all drawings using same company std title block elsewhere
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me