StefanoT Posted June 22, 2024 Share Posted June 22, 2024 (edited) Is there a way to insert a filename field (Project.Data Filename) in a Title block but without the .vwx suffix (e.g. "Document" instead of "Document.vwx")? Due to legal reasons we are delivering pdf files and therefore publishing/exporting pdf files with a consistent title block (.pdf rather than .vwx o no suffix at all) is needed. Thanks in advance! Edited June 22, 2024 by StefanoT 1 Quote Link to comment
Pat Stanford Posted June 22, 2024 Share Posted June 22, 2024 (edited) EDITED 11:55AM PST June 23, 2024 - File Names didn't match. 🤦♂️ Yes, but it is not especially easy, but once you get it set up it should work fine. You can't do it using the built in TBB Dynamic Text. 1. Create a new Vectorscript and paste in the following line: WSScript_SetResStr(Copy(GetFName,1,Len(GetFname)-4)); 2. Save the script with the name Trimmed_File_Name 3. Create a new DataTag with a single text block. 4. Edit the Dynamic Text and paste in the following string: #WS_RUNSCRIPT('Trimmed_File_Name')# 5. Click OK to exit the Data Tag. Test and make sure the Data Tag puts the correct string in the drawing when you put is on a layer. 6. Edit the Title Block Layout and delete the placeholder string for the current file name. 7. Put the new Data Tag in the location where the file name should be. 8. Add the Trimmed_File_Name script to your template file(s) as it will have to be in every file for this to work. HTH Edited June 23, 2024 by Pat Stanford File Names DIdn't Match 3 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.