AutoCAD Fields With Tables
Nearly every sector of architecture and engineering requires quantity take-offs. This dreaded task has been improved through the use of new utilities built into AutoCAD, but it doesn’t cover all of the bases. This lesson is going to teach the basics of utilizing AutoCAD Fields within Tables to gather information and quantities of your drawing objects. The examples shown, as in past lessons, are a little generalized so that you can expand on them using the numerous other options in the Field dialog box, or create something more specific to your sector of designing and drafting.
The example being used is a small sanitary sewer layout that I’d like to get an individual and total count of linear feet of pipe for. You can see the basic layout of the sanitary system in the image below.
Begin by creating your table. The style of table you use; the number, width, and height of rows and columns you choose; text size and style; and type of content you plan to populate it with will determine the settings you make in the Insert Table dialog box. Instead of telling you how to go about this, I’m going to suggest you try out a lot of different options and get comfortable in the dialog. For the purposes of this exercise, I created a bare-bones table with title and data row. In a real world situation you would likely have headers and populate all of the cells with valuable data, but that’s not the point of the exercise so let’s just get to it.
See the image below for the basic table I created and start the process of inserting the Field into the cell.
Once in the Field dialog box, select “Object” under the “Objects” category and press the “Select object” button.
This will take you back into your drawing in order to pick the line, arc, polyline, polygon, viewport, etc. Choose the object to associate the field with and then filter the property, format, and precision of the object back in the dialog.
To get additional or more detailed information into the cell along with the Field, select the “Additional Format…” button and define and conversion factor, prefix, suffix, zero suppression, and/or number separators as seen in the image to the right. Pick “OK” when you are done to return to the Field dialog.
In the next image, you can see the results of all the variables you have formatted within the “Field expression” area of the dialog box. This data is a mix-n-match of VBA, LISP, and Diesel in order for the Field to operate properly. As you can tell, there isn’t much discernable information there, and the Field will not work if it is manually edited. Click “OK” when you are done.
Below, you can see the Field populated in the table listing the length of line (which represents the pipe) in which I selected. You’ll also notice that there is a space between the length and the “L.F.”, which is because I placed a space before the “L.F.” when I entered it in the suffix area of the Advanced Format dialog box. It is forethought like this that makes your plans all that much cleaner, organized, and easier to read.
In the next image, you’ll see that I have duplicated the process I had already done, but for the remaining lengths of pipe I want to calculate. In the cell next to “Total Length” you can enter a formula in two ways. The first method is described below.
Select “Formula” from the “Objects” category and select the “Sum” button. This will take you back to the drawing, allowing you to select a crossing window of the cells you want to include in the sum.
You can see the process of selecting the cells to be included for the sum below.
The resulting options back in the dialog box are format, precision, and additional format-similar to what has been available in previous exercises. Once you have defined the settings you’d like in the cell, select “OK” to return to the drawing.
The image below displays the resulting sum of the pipe lengths as defined in the formula.
For those that are more familiar with Microsoft Excel and the process of typing formulas that it offers, that method is available too. The image below captures the basic methodology of using formulas from Excel in an AutoCAD table to produce the same results.
If you pay close attention to the different options available in the Field dialog box for objects, you will notice that this exercise is merely an inkling of what’s possible. Dive into the dialog box head first and get comfortable with it.
Also, if you follow me on Twitter or subscribe to the RSS feed, you will notice that I will be posting a third entry this week to finish out all the topics I want to discuss. Also, I plan on having a wrap-up post over the weekend to resolve any loose ends from the month and to give you the opportunity to give me some feedback. If you don’t follow me or aren’t subscribed to the feed, be sure to check back regularly for updates.














Hi there.
I’m trying to do the AutoCAD Fields With Tables but when I get to the sum part, I do not get the sumation of the boxes I’ve selected. All i get as my total is “####” (four number symbols. Now when this happens in EXCEL, it means that the row or column is too small to fit the answer but not the case in my Autocad (2009) table. The columns and rows are 4 to 5 times the size of my text. What does it mean when I get these four # symbols and not the sum of the boxes I’ve selectPlease respond to stlouism@mmm.ca if you have the answer ok?
Thanks Kindly,
Marc
Marc,
I appreciate you taking the time to ask your question here on Indydrafter.com. Sorry I have yet to respond…I just got back from my honeymoon yesterday and am trying to quickly adjust back to regular schedule. I’ll take a look at this issue tonight and try to respond as soon as I can with an answer.
Marc,
It took me a while to replicate your results in AutoCAD. However, I think I’ve figured out the problem you are running into and how to resolve it. My assumption is that you’ve probably typed in your formula for the table cell such as this: “=sum(A:1-A:5)” which is apparently interpreted incorrectly by AutoCAD. I’ll tell you, this was difficult to figure out and I was amazed that it was something that the developers at Autodesk overlooked. If you simply capitalized the “s” in your formula such as “=Sum(A:1-A:5)” you will find that it now work properly. I didn’t find this until attempting to create the formula with the FIELD dialog box and noticing the difference. Yes…capitalization does apparently matter with creating formulas in AutoCAD Tables! Thanks for asking this question and giving me a good reason to find out this AutoCAD Field quirk.
I’m trying to get a field from the table, I’m not doing sums or anything like that. I’m trying to have a block attribute to contain a field from a tables cell that contains text, however I just keep getting the “####”. I was not able to see anything for formatting to allow text and wondering if you have came across anything that would allow me to accomplish this goal.
Thanks in advance,
Billy
I am also trying to get my annotaions and labels to have a field that references the text of a given cell. I want to have control to change things in one location and have it update all the callouts associated.
Leave your response!
Tags
Categories
Quick Job Search
Sign-up For The QuickAccess Newsletter
Latest Forum Activity
April 14, 2010, 15:40
April 9, 2010, 17:35
April 9, 2010, 17:31
March 5, 2010, 21:05
March 3, 2010, 13:21
Most Commented
Recent Comments