Autodesk Technology Managers Forum
Share your knowledge, ask questions, and engage with fellow CAD/BIM Managers.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Title Block Customisation

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
1344 Views, 5 Replies

Title Block Customisation

I wonder if anybody would be kind enough to help me........ACAD Electrical, XP64 Pro OS, all working with no real problems, but.......

We currently map the external filename to a filename attribute on the titleblock, however prior to using ACAD Electrical we appended the revision numbers to the filename ' ......-rev01' etc but of course this is now being put in the filename attribute as well. We already have provision on the dwg for revision/version control, and need the '...-rev01' part removed. I notice though, that ACAD already removed the '.dwg' from the filename, so with a slight modification I should be able to remove more. I'm hoping there is a lisp file somewhere that does this?

Any thoughts?
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

ACAD already removed the '.dwg' from the filename, so with a slight modification I should be able to remove more.......the filename field can only use the full file name there is an option to include or exclude the extension and / or the path but no other options.

you could include a mask in your drawing frame XREF file which masks out the -rev00 part of the filename but it would be simpler to just not include the revision within your filenames.
the mask will only work if all your filenames are a fixed length so the revision part of the filename is in a fixed location for all files. you will have to play around with the draworder so that the drawing frame XREF is always at the front so the mask will mask the drawing number field in each of your drawing files.
Message 3 of 6
AllenJessup
in reply to: Anonymous

This is what I've found out about Field Codes and the filename:
%<\AcVar Filename \f "%tc4%fn7">% Name & Path
%<\AcVar Filename \f "%tc4%fn2">% Name
%<\AcVar Filename \f "%tc4%fn1">% Path
%<\AcVar Filename \f "%tc4%fn3">% Name & Path
%<\AcVar Filename \f "%tc4%fn4">% Exstension
%<\AcVar Filename \f "%tc4%fn5">% Path & Exstension - No Name
%<\AcVar Filename \f "%tc4%fn6">% Name & Exteansion
%<\AcVar Filename \f "%tc4%fn8">% nil
%<\AcVar Filename \f "%tc4%fn9">% Path
%<\AcVar Filename \f "%tc4%fn10">% Name - title Case
%<\AcVar Filename \f "%tc1%fn2">% Name - Capitalized
%<\AcVar Filename \f "%tc2%fn2">% Name - Lower Case
%<\AcVar Filename \f "%tc3%fn2">% Name - First Capital
If you could find out how to truncate the result that might work. We've been using fields but instead of the filemane I use values from the Drawing Properties and layout names in our titleblock. The filename is only used in the plot stamp, full path.
Allen

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 4 of 6
Anonymous
in reply to: Anonymous

On Thu, 18 Feb 2010 07:58:01 -0800, LesLees6036 <> wrote:

>I wonder if anybody would be kind enough to help me........ACAD Electrical, XP64 Pro OS, all working with no real problems, but.......
>
>We currently map the external filename to a filename attribute on the titleblock, however prior to using ACAD Electrical we appended the revision numbers to the filename ' ......-rev01' etc but of course this is now being put in the filename attribute as well. We already have provision on the dwg for revision/version control, and need the '...-rev01' part removed. I notice though, that ACAD already removed the '.dwg' from the filename, so with a slight modification I should be able to remove more. I'm hoping there is a lisp file somewhere that does this?

The LISP expression itself is very simple:

(setq dwg (getvar "dwgname")) ;; returns "filename-rev01.dwg"
(setq dwg (substr dwg 1 (- (strlen dwg) 10))) ;;returns "filename"

Matt
matt@stachoni.com
Message 5 of 6
AllenJessup
in reply to: Anonymous

I thought if I could translate that to Diesel it could be inserted in a field. But I'm not familiar with Diesel so I can't get it to work. It displays the drawing name but doesn't truncate it.
$(substr, $(getvar,dwgname), 1, $(-, $(strlen, $(getvar,dwgname)))10)
Allen

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 6 of 6
Charles_Shade
in reply to: Anonymous

Try your query over at the LT Forum. Loads of DIESEL users there (although not me).
SWAG - It may be the spaces in your expression that are breaking it.
Regards, Charles Shade

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Administrator Productivity


Autodesk Design & Make Report