{"id":683,"date":"2012-08-14T09:00:23","date_gmt":"2012-08-14T03:30:23","guid":{"rendered":"http:\/\/themagnumgroup.net\/Blog\/?p=683"},"modified":"2020-04-04T13:02:14","modified_gmt":"2020-04-04T07:32:14","slug":"computer-drafting-tip-customizing-autocad-fields","status":"publish","type":"post","link":"https:\/\/themagnumgroup.net\/Blog\/computer-drafting-tip-customizing-autocad-fields\/","title":{"rendered":"CAD Drafting Tip: Customizing AutoCAD Fields"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; margin: 16px 16px 10px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border-width: 0px;\" title=\"image1\" src=\"http:\/\/themagnumgroup.net\/Blog\/wp-content\/uploads\/2012\/08\/image11.jpg\" alt=\"image1\" width=\"151\" height=\"122\" align=\"left\" border=\"0\"><strong><\/strong><\/p>\n<p><strong>The \u2018Field\u2019 is an important tool used in computer drafting.<\/strong><\/p>\n<p>Have you ever come across text surrounded in grey in an AutoCAD file? (see image at left). It indicates a field object, a time-saver for certain repetitive tasks in AutoCAD.<\/p>\n<p>So what is a field and how is it used?<\/p>\n<p>A field is text in AutoCAD drawings which automatically updates itself (after a \u2018regen\u2019 command) whenever there is a change in the values to which the field is connected.<\/p>\n<p>In our opinion, the most common use of fields in computer drafting is to update parameter values in<br \/>\n<strong>\u00a7<\/strong>&nbsp;&nbsp;&nbsp; Title blocks<br \/>\n<strong>\u00a7<\/strong>&nbsp;&nbsp;&nbsp; Plotting file names along with their paths and<br \/>\n<strong>\u00a7<\/strong>&nbsp;&nbsp;&nbsp; Dates<\/p>\n<p>There are of course other interesting and less common uses of fields:<\/p>\n<p><strong>\u00a7<\/strong>&nbsp;&nbsp;&nbsp; One can use fields to update the scale of a viewport automatically whenever the scale of a viewport is modified<br \/>\n<strong>\u00a7<\/strong>&nbsp;&nbsp;&nbsp; One can perform simple calculations inside the field and so that the result updates automatically whenever the calculation\u2019s operands change.<\/p>\n<p>But there is yet another use of fields, one that we at TMG employ in our day to day work\u2026<\/p>\n<p>Let us consider this scenario: you have a situation where you need to update multiple instances of text throughout a drawing, including on multiple layout sheets.<\/p>\n<p>Using fields, all those instances, even if they number in the hundreds, can be updated in ONE SHOT.<\/p>\n<p>Of course you could create attributes, convert them into a block, then use the \u2018GATTE\u2019 command to update them in one shot &#8230; but what if you needed to update only a value or portion of the text inside an MTEXT by doing some simple calculations? This is not possible by the block method, and we will now describe one of the best strategies to get it done.<\/p>\n<p>Look at the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border-width: 0px;\" title=\"image2\" src=\"http:\/\/themagnumgroup.net\/Blog\/wp-content\/uploads\/2012\/08\/image21.jpg\" alt=\"image2\" width=\"640\" height=\"119\" align=\"left\" border=\"0\"><\/p>\n<p>The above \u2018X\u2019 values occur individually scattered over several layout sheets. One of the values, \u2018Tank volume\u2019, is calculated from the length, width and height listed above it.<\/p>\n<p>The task is to update all the values one time and in one place, then have occurrences in all the layout sheets updated automatically, as well as leave calculation of the tank volume to AutoCAD.<\/p>\n<p>Also please note that a number of different pump models may also need to be used in single computer drafting project, which will result in updating the above a number of times. And, this is a continuous job with different pump and tank configuration.<\/p>\n<p>Enter fields to the rescue! Here are the steps to harness their power:<\/p>\n<h3>Step1<\/h3>\n<p>Gather all unique data that needs to be updated to a central location as shown in the image below. This is for the convenience of performing changes without moving to various places on the screen or to various screens. Please note that you should use either single line text entities or a table (see image below).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;\" title=\"image3\" src=\"http:\/\/themagnumgroup.net\/Blog\/wp-content\/uploads\/2012\/08\/image31.jpg\" alt=\"image3\" width=\"240\" height=\"191\" border=\"0\"><\/p>\n<h3>Step2<\/h3>\n<p>Copy and paste the expressions for the variable values in each line from the \u2018field\u2019 command as shown in the below video (there is no audio in it).<\/p>\n<p>Tips:<br \/>\nCopying and pasting the field expressions directly will allow us to update values across multiple layout sheets.<\/p>\n<p>[SWF]http:\/\/themagnumgroup.net\/Blog\/wp-content\/uploads\/2012\/08\/filed-expression.swf, 480, 480[\/SWF]<\/p>\n<p>Repeat the above process to insert the field expression for the rest of the field\u2019s data.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border-width: 0px;\" title=\"image4\" src=\"http:\/\/themagnumgroup.net\/Blog\/wp-content\/uploads\/2012\/08\/image41.jpg\" alt=\"image4\" width=\"640\" height=\"134\" align=\"left\" border=\"0\"><\/p>\n<h3>Step3<\/h3>\n<p>Now all the field data except the tank volume is updated (see above image).&nbsp; The tank volume requires simple calculation, and we see how to do that in the below video (no audio).<\/p>\n<p>[SWF]http:\/\/themagnumgroup.net\/Blog\/wp-content\/uploads\/2012\/08\/calculation.swf, 480, 480[\/SWF]<\/p>\n<p>Now we will see the field in action (no audio).<br \/>\nPlease don\u2019t forget to do a regen for the fields to update.<\/p>\n<p>[SWF]http:\/\/themagnumgroup.net\/Blog\/wp-content\/uploads\/2012\/08\/field-in-action.swf, 480, 480[\/SWF]<\/p>\n<p>Finally, since this is a continuous job with different pump and tank configurations, we have created an AutoCAD template file with the above field objects to use as a base file. After completing the drawing, drafters have only to enter the relevant filed data once, as shown in image in Step 1.<\/p>\n<h3>Conclusion<\/h3>\n<p>By customizing a field, you can save a lot of time in your day to day work and increase your computer drafting productivity.<\/p>\n<p>Let me know in the comments below if you would like anything above explained further. I look forward to hearing from you!<\/p>\n<p><a href=\"http:\/\/themagnumgroup.net\/Blog\/wp-content\/uploads\/2012\/08\/Kamalathasan-signature.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border-width: 0px;\" title=\"Kamalathasan-signature\" src=\"http:\/\/themagnumgroup.net\/Blog\/wp-content\/uploads\/2012\/08\/Kamalathasan-signature_thumb.png\" alt=\"Kamalathasan-signature\" width=\"240\" height=\"51\" align=\"left\" border=\"0\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c3c9c18d-7040-4790-8a29-6759eb5af1c8\" class=\"wlWriterEditableSmartContent\" style=\"margin: 0px; display: inline; float: none; font-size: 8px; padding: 0px;\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/CAD+services\" rel=\"tag\">CAD services<\/a>,<a href=\"http:\/\/technorati.com\/tags\/cad+fields\" rel=\"tag\">cad fields<\/a>,<a href=\"http:\/\/technorati.com\/tags\/AutoCAD\" rel=\"tag\">AutoCAD<\/a>,<a href=\"http:\/\/technorati.com\/tags\/computer+drafting\" rel=\"tag\">computer drafting<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; The \u2018Field\u2019 is an important tool used in computer drafting. Have you ever come across text surrounded in grey in an AutoCAD file? (see image at left). It indicates a field object, a time-saver for certain repetitive tasks in AutoCAD. So what is a field and how is it used? A field is text&#8230;<\/p>\n","protected":false},"author":3,"featured_media":5473,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[3],"tags":[14,233,19,234],"class_list":["post-683","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cad-news","tag-autocad","tag-cad-fields","tag-cad-services","tag-computer-drafting"],"_links":{"self":[{"href":"https:\/\/themagnumgroup.net\/Blog\/wp-json\/wp\/v2\/posts\/683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themagnumgroup.net\/Blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themagnumgroup.net\/Blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themagnumgroup.net\/Blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/themagnumgroup.net\/Blog\/wp-json\/wp\/v2\/comments?post=683"}],"version-history":[{"count":24,"href":"https:\/\/themagnumgroup.net\/Blog\/wp-json\/wp\/v2\/posts\/683\/revisions"}],"predecessor-version":[{"id":5474,"href":"https:\/\/themagnumgroup.net\/Blog\/wp-json\/wp\/v2\/posts\/683\/revisions\/5474"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themagnumgroup.net\/Blog\/wp-json\/wp\/v2\/media\/5473"}],"wp:attachment":[{"href":"https:\/\/themagnumgroup.net\/Blog\/wp-json\/wp\/v2\/media?parent=683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themagnumgroup.net\/Blog\/wp-json\/wp\/v2\/categories?post=683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themagnumgroup.net\/Blog\/wp-json\/wp\/v2\/tags?post=683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}