Solution ID: TS82286
Title: DOCUMENTATION FOR CUSTOMIZING TITLE BLOCKS
Products: AUTOCAD MECH R2004 (R2004)
Problem Description: You want to customize the title blocks in AutoCAD Mechanical to create custom title block definitions and templates for your company, but there is insufficient documentation and help topics available for doing this within the product.
Problem Resolution: Title blocks in AutoCAD Mechanical are based on template files found in the following location (by default). In this case <install folder> is the name of the folder you specify when installing either AutoCAD Mechanical or Mechanical Desktop.
C:\Program Files\Autodesk\<install folder>\Acadm\Gen\Dwg\Title
For this example, we'll use the title block defined in the file ansi_titlea.dwg. Navigate to this folder and open this drawing file in AutoCAD Mechanical. Next, you will want to zoom to extents so you can see all of the information on the screen easily.
This is the title block definition and all of the accompanying attributes defined for recording information like drawing name, sheet size, scale, revision number and so on.
To modify any of these tags, you can use the AutoCAD command DDEDIT and select one of the title block attributes, or simply double click on one of the title block attributes, which will allow you to edit it.
Let's take a look at the attribute "(genmsg "gentitan" 60) {8.9}" located in the upper, left hand corner of the title block. When you edit this attribute, the Edit Text dialog box appears on your screen with a text string you can edit. Unfortunately, there is no documentation in the on-line help available to explain what these text strings or attribute tags mean. So, here's a brief description of how they work and how you can modify them, or even create your own custom tags.
For this example, the "gentitan" tag refers to a file on your hard drive where information is pulled that is relevant to this attribute. In this case, there is a file called gentitan.mld. It is located here (by default):
C:\Program Files\Autodesk\<install folder>\Acadm\Translator
You may navigate to this folder using Windows file explorer and open the file using any ASCII text editor such as Notepad. So, go ahead and open the file. The first line across the top shows a list of languages available for translating these attributes followed by a series of commented lines before you see a line that starts with the number 60. On this line you see the number 60 followed by a list of names, or attribute tags. In this case line 60 refers to "File Name" in English, followed by the equivalent in the the other languages.
If you want line 60 to read something other than "File Name" than you can insert your own tag here, or create a new line at the end of the file. The last number is 109, so you could add a 110 as long as you define the name that corresponds to this line.
For this example, "(genmsg "gentitan" 60) {8.9}", refers to the gentitan.mld file and the attribute referenced on line 60, which is File Name. This is where the attribute is defined in the title block template drawing and where that information will be displayed in your actual drawing when the title block is inserted.
So, you can modify or create your own attributes and tags for the title block you want to create. The second set of numbers inside the curly brackets, or {8.9}, is used to define the length of the characters needed for this tag. In this case, if the text is shorter than 8 characters, it will be spaced so the minimum is 8, but if the string is longer than 9 characters, it will apply an aspect ratio to the text string and compress it to fix the defined character length. |