Print Page | Close Window

Displaying the Hatch Area with a Field in AutoCAD

Printed From: CAD Forum
Category: EN
Forum Name: RSS Feeds
Forum Description: Automatic publishing of CAD information from other web sources
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=3192
Printed Date: 22.Apr.2026 at 05:05


Topic: Displaying the Hatch Area with a Field in AutoCAD
Posted By: BetweenTheLines
Subject: Displaying the Hatch Area with a Field in AutoCAD
Date Posted: 16.Feb.2010 at 03:06
This is an oldie, but popular goodie and question from this blog.
http://autodesk.blogs.com/between_the_lines/2009/01/starbacks-bbq-floor-space-planning-with-autocad-fields.html - StarBacks BBQ Floor Space Planning with AutoCAD FIELDS
So I love barbeque. People that know me can attest to this fact and I have cooked barbeque baby back ribs all over the world, even in Germany where I was paid in fine beer and compliments. Anyways I wanted to quickly demonstrate a valuable method to show the area of a Hatch object automatically as well as include the areas in a table, then with a total and when the hatched areas are changed so are the area values in the table.

So in my faux dream barbeque restaurant “StarBacks” I wanted to show the areas of the customer dining and bar area, prep and pit area this is where the pit smoking of the meats is done with fine oak wood smoke, and then the kitchen area.

http://autodesk.blogs.com/.a/6a00d8341bfd0c53ef010536bf97ab970c-pi">StarBacks AutoCAD Field Example Step 1

I use the FIELD command and select Object from Field Category and then select the Hatch.

http://autodesk.blogs.com/.a/6a00d8341bfd0c53ef010536bf97b4970c-pi">StarBacks AutoCAD Field Example Step 2

Now after selecting the Hatch select the Area Property and then format the value to the decimal and precision you want and insert it.

http://autodesk.blogs.com/.a/6a00d8341bfd0c53ef010536b5c93c970b-pi">StarBacks AutoCAD Field Example Step 3

After doing this for the three areas I now have three Field text objects linked to the areas of the Hatch objects.

http://autodesk.blogs.com/.a/6a00d8341bfd0c53ef010536b5c942970b-pi">StarBacks AutoCAD Field Example Step 4

I can create an AutoCAD Table with the TABLE command and then set my titles for the areas.

http://autodesk.blogs.com/.a/6a00d8341bfd0c53ef010536bf97d0970c-pi">StarBacks AutoCAD Field Example Step 5

Then in the cell I want the areas shown I use the Object from Field Category and select the Field text and Object property of Contents. Now the cell is linked to the Field text that is linked to the area of the Hatch. Got it, good.

http://autodesk.blogs.com/.a/6a00d8341bfd0c53ef010536b5c947970b-pi">StarBacks AutoCAD Field Example Step 6

Of course I would like a total of the entire square footage (or meters for those lucky enough to make metric their standard). In the cell I right-click and select Insert > Formula > Equation.

http://autodesk.blogs.com/.a/6a00d8341bfd0c53ef010536bf97dc970c-pi">StarBacks AutoCAD Field Example Step 7

Now it is just like in Excel and I enter A3+B3+C3 and I get the total of those three cells. I could also use the SUM option.

http://autodesk.blogs.com/.a/6a00d8341bfd0c53ef010536b6c59d970b-pi">StarBacks AutoCAD Field Example Step 8

And there we go after some formatting of the precision to eliminate the trailing zeros I have a nice table all dynamically updating when the hatched areas update. So when I stretch the dining or bar area to increase space for more people (inevitable) the areas all update.

http://autodesk.blogs.com/.a/6a00d8341bfd0c53ef010536b5c960970b-pi">StarBacks AutoCAD Field Example Step 9

Showing the final floor plan and table. You could use this in so many ways such as material planning, retail space allocation, and more. Fields are powerful and you can link them to attributes like lights in a plan and have a table update with the quantity and type of light including cost from the attributed light block. Fields are powerful.

http://autodesk.blogs.com/.a/6a00d8341bfd0c53ef010536bf97f0970c-pi">StarBacks AutoCAD Field Example Completed

You can use this same technique for attaching fields to other objects such as showing the length of a polyline.

Cheers,
Shaan

http://feeds.feedburner.com/~ff/blogs/btl?a=3ZhKI8Kn8Ic:F5pO2yE8erM:yIl2AUoC8zA"> http://feeds.feedburner.com/~ff/blogs/btl?a=3ZhKI8Kn8Ic:F5pO2yE8erM:qj6IDK7rITs"> http://feeds.feedburner.com/~ff/blogs/btl?a=3ZhKI8Kn8Ic:F5pO2yE8erM:V_sGLiPBpWU"> http://feeds.feedburner.com/~ff/blogs/btl?a=3ZhKI8Kn8Ic:F5pO2yE8erM:sHskjighKVI">

Go to the http://feedproxy.google.com/~r/blogs/btl/~3/3ZhKI8Kn8Ic/displaying-the-hatch-area-with-a-field-in-autocad.html - original post...



-------------
http://autodesk.blogs.com/between_the_lines/" rel="nofollow - Between the Lines - Autodesk blog by Shaan Hurley



Print Page | Close Window