<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Indydrafter.com &#187; Blocks</title>
	<atom:link href="http://indydrafter.com/tag/blocks/feed/" rel="self" type="application/rss+xml" />
	<link>http://indydrafter.com</link>
	<description>The Indypendent Autodesk Resource</description>
	<lastBuildDate>Fri, 03 Sep 2010 15:22:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>AutoCAD Fields With Blocks</title>
		<link>http://indydrafter.com/autocad-fields-with-blocks/</link>
		<comments>http://indydrafter.com/autocad-fields-with-blocks/#comments</comments>
		<pubDate>Fri, 29 May 2009 20:29:59 +0000</pubDate>
		<dc:creator>Bryan Tanner</dc:creator>
				<category><![CDATA[General Design]]></category>
		<category><![CDATA[Attributes]]></category>
		<category><![CDATA[Blocks]]></category>
		<category><![CDATA[Coordinates]]></category>
		<category><![CDATA[Fields]]></category>

		<guid isPermaLink="false">http://indydrafter.com/?p=234</guid>
		<description><![CDATA[I’m going to have to give a lot of credit to Josh Jones of Lazydrafter.com for this exercise.  He prompted a question about inserting fields with coordinate values tied to the blocks they referenced.  I tried this out on my own and managed to make it work.  However, I went to Josh’s website to check out how he did it, and it was a much better way.  I reworked my block very similar to how he did, and have documented the work in the following paragraphs.  My suggestion is, if ...]]></description>
			<content:encoded><![CDATA[<p style="margin: 0in 0in 10pt;">I’m going to have to give a lot of credit to Josh Jones of <a href="http://lazydrafter.com">Lazydrafter.com</a> for this exercise.  He prompted a question about inserting fields with coordinate values tied to the blocks they referenced.  I tried this out on my own and managed to make it work.  However, I went to Josh’s website to check out how he did it, and it was a much better way.  I reworked my block very similar to how he did, and have documented the work in the following paragraphs.  My suggestion is, if my explanation is hard to understand or if you want another opinion on it, go to <a href="http://lazydrafter.com">Lazydrafter.com</a> and see Josh’s tutorial.  While you’re there, check out all the other great work he’s done and contributed to the CAD community.</p>
<p style="margin: 0in 0in 10pt;">Start with a block of any sort that you will later need to annotate the coordinates for.  I’ve started with a standard manhole block that I use as shown below.</p>
<p class="MsoNormal" style="margin: 0in 0in 10pt; text-align: center;" align="center"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-1.bmp"></a></p>
<p style="margin: 0in 0in 10pt; text-align: center;"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-1.png"><img class="aligncenter size-full wp-image-336" title="field-block-1" src="http://indydrafter.com/wp-content/uploads/2009/05/field-block-1.png" alt="field-block-1" width="378" height="321" /></a></p>
<p style="margin: 0in 0in 10pt;">Define an attribute with the ATTDEF command.  You may remember this process from the exercise for implementing Fields with a title block.  Define the properties of the attribute you will insert into the drawing.</p>
<p class="MsoNormal" style="margin: 0in 0in 10pt; text-align: center;" align="center"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-2.bmp"></a></p>
<p style="margin: 0in 0in 10pt; text-align: center;"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-2.png"><img class="aligncenter size-full wp-image-337" title="field-block-2" src="http://indydrafter.com/wp-content/uploads/2009/05/field-block-2.png" alt="field-block-2" width="345" height="314" /></a></p>
<p style="margin: 0in 0in 10pt;">Select the button to the right of the “Default” attribute area to insert a Field.  Once again, this will take you into the Field dialog box.</p>
<p class="MsoNormal" style="margin: 0in 0in 10pt; text-align: center;" align="center"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-3.bmp"></a></p>
<p style="margin: 0in 0in 10pt; text-align: center;"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-3.png"><img class="aligncenter size-full wp-image-338" title="field-block-3" src="http://indydrafter.com/wp-content/uploads/2009/05/field-block-3.png" alt="field-block-3" width="456" height="397" /></a></p>
<p style="margin: 0in 0in 10pt;">While in the dialog box, select “Object” from within the “Objects” category and pick the “Select object” button next to the “Object type” area of the dialog.  This will take you back into the drawing in order to select the desired block to be used.  This can also be an AutoCAD Point, as Josh described in his post.</p>
<p style="margin: 0in 0in 10pt;">After selecting the block and back into the dialog box, define all of the properties and formatting to be used with the Field.  You will see in the image below that I have defined the “Position” property, “Decimal” format, and “Y” value (as well as many other variables) in order to display a coordinate location for “Northing”.</p>
<p class="MsoNormal" style="margin: 0in 0in 10pt; text-align: center;" align="center"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-4.bmp"></a></p>
<p style="margin: 0in 0in 10pt; text-align: center;"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-4.png"><img class="aligncenter size-full wp-image-339" title="field-block-4" src="http://indydrafter.com/wp-content/uploads/2009/05/field-block-4.png" alt="field-block-4" width="455" height="398" /></a></p>
<p style="margin: 0in 0in 10pt;">In the Attribute Definition dialog box that I previously displayed, you can see that I placed the “N:” prefix in the “Default” area.  The other option in doing this is including the prefix from within the “Additional Format” dialog box as shown below.  However, doing both will result in multiple prefixes and doesn’t bode well.</p>
<p class="MsoNormal" style="margin: 0in 0in 10pt; text-align: center;" align="center"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-5.bmp"></a></p>
<p style="margin: 0in 0in 10pt; text-align: center;"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-5.png"><img class="aligncenter size-full wp-image-340" title="field-block-5" src="http://indydrafter.com/wp-content/uploads/2009/05/field-block-5.png" alt="field-block-5" width="455" height="397" /></a></p>
<p style="margin: 0in 0in 10pt;">Select “OK” from the Field dialog to finish inserting the Field and “OK” from the Attribute Definition dialog to return to the drawing. Below is the finished result of the Field once it has been regenerated.</p>
<p class="MsoNormal" style="margin: 0in 0in 10pt; text-align: center;" align="center"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-6.bmp"></a></p>
<p style="margin: 0in 0in 10pt; text-align: center;"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-6.png"><img class="aligncenter size-full wp-image-342" title="field-block-6" src="http://indydrafter.com/wp-content/uploads/2009/05/field-block-6.png" alt="field-block-6" width="437" height="293" /></a></p>
<p style="margin: 0in 0in 10pt;">You will see the Tag that you defined displayed and without the Field background.  This will not display with the coordinate value or the Field displayed until it has been inserted as a block as I’ll describe later.  Below, you will see the additional attributes that I defined using the same process with the “X” value used for “Easting” and “Z” value used for “TopCasting”.</p>
<p class="MsoNormal" style="margin: 0in 0in 10pt; text-align: center;" align="center"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-7.bmp"></a></p>
<p style="margin: 0in 0in 10pt; text-align: center;"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-7.png"><img class="aligncenter size-full wp-image-343" title="field-block-7" src="http://indydrafter.com/wp-content/uploads/2009/05/field-block-7.png" alt="field-block-7" width="482" height="297" /></a></p>
<p style="margin: 0in 0in 10pt;">You will probably start noticing how this could be perceived as useful in your drawings.  This is especially true if you are using a program such as Civil 3D that can associate point descriptions with a block library to insert specific blocks in point locations, essentially doing all the work for you once it has been set up.</p>
<p style="margin: 0in 0in 10pt;">Moving right along, let’s WBLOCK the attributes and the block out into its own drawing file.  Although this is a common practice, I have documented the process in the image below.</p>
<p class="MsoNormal" style="margin: 0in 0in 10pt; text-align: center;" align="center"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-8.bmp"></a></p>
<p style="margin: 0in 0in 10pt; text-align: center;"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-8.png"><img class="aligncenter size-full wp-image-344" title="field-block-8" src="http://indydrafter.com/wp-content/uploads/2009/05/field-block-8.png" alt="field-block-8" width="309" height="332" /></a></p>
<p style="margin: 0in 0in 10pt;">The next step is to insert the block into the drawing, or any drawing thereafter now that you have created reusable content.</p>
<p class="MsoNormal" style="margin: 0in 0in 10pt; text-align: center;" align="center"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-9.bmp"></a><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-9.png"><img class="aligncenter size-full wp-image-345" title="field-block-9" src="http://indydrafter.com/wp-content/uploads/2009/05/field-block-9.png" alt="field-block-9" width="364" height="227" /></a></p>
<p style="margin: 0in 0in 10pt;">In the image below, you will see the finished product of this exercise.  Notice that the tags are gone and the default values defined in the block are displayed, which includes the Fields.  For this to happen without an Edit Attributes dialog displayed for every insertion, make sure you check the “Preset” option under the “Mode” area of the Attribute Definition dialog box.</p>
<p class="MsoNormal" style="margin: 0in 0in 10pt; text-align: center;" align="center"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-10.bmp"></a></p>
<p style="margin: 0in 0in 10pt; text-align: center;"><a href="http://indydrafter.com/wp-content/uploads/2009/05/field-block-10.png"><img class="aligncenter size-full wp-image-346" title="field-block-10" src="http://indydrafter.com/wp-content/uploads/2009/05/field-block-10.png" alt="field-block-10" width="471" height="293" /></a></p>
<p style="margin: 0in 0in 10pt;">You can have multiple copies of this block in the same drawing, and because of the use of attributes and Fields, they will all display their unique coordinate value.  As always, there are many more options available using AutoCAD Fields with blocks and dynamic blocks, but this is a very useful and developmental start to discovering their capabilities.</p>
<p><a href="http://cadkicks.com:80/kick/?url=http%3a%2f%2findydrafter.com%2fautocad-fields-with-blocks"><img src="http://cadkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2findydrafter.com%2fautocad-fields-with-blocks&amp;bgcolor=6699FF&amp;cbgcolor=FFFFFF" border="0" alt="kick it on CadKicks.com" /></a></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://indydrafter.com/autocad-fields-with-objects/" rel="bookmark" class="crp_title">AutoCAD Fields With Objects</a></li><li><a href="http://indydrafter.com/autocad-fields-in-sheet-set-manager/" rel="bookmark" class="crp_title">AutoCAD Fields in Sheet Set Manager</a></li><li><a href="http://indydrafter.com/fields-in-sheet-set-manager-continued/" rel="bookmark" class="crp_title">Fields in Sheet Set Manager (continued)</a></li><li><a href="http://indydrafter.com/the-basics-of-autocad-fields/" rel="bookmark" class="crp_title">The Basics of AutoCAD Fields</a></li><li><a href="http://indydrafter.com/autocad-fields-with-tables/" rel="bookmark" class="crp_title">AutoCAD Fields With Tables</a></li></ul></div> PropertyOfIndydrafter.com]]></content:encoded>
			<wfw:commentRss>http://indydrafter.com/autocad-fields-with-blocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
