Jump to content

Title block - filename without .vwx suffix


Recommended Posts

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 by StefanoT
  • Like 1
Link to comment

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 by Pat Stanford
File Names DIdn't Match
  • Like 3
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...