P-Area is a routine to assist you in labeling the area of polylines in AutoCAD. Many people have labeled polylines the traditional way, but what happens when the polyline changes? You have to relabel the polyline again, right? Well, Peter Goern has taken this idea one step further and uses fields in the label that are linked to the polyline. This means if a polyline changes size, the field updates automatically depending on the value of the FieldEval system variable. This saves you from having to relabel the polylines. To use this routine, load it and type in the command P-Area. Keep in mind that the numerical value of the label is linked to the actual area of the entity, but the textual part of the label is defined in the LISP code. Also note that Peter's code creates labels that say "square meters." If your drawing is in inches, feet, miles, kilometers, or any unit other than meters, you will need to adjust the code accordingly. Lastly, this routine only works with LWPolyline entities. You can convert "heavy" polylines using the ConvertPoly command. |