![]() ![]() ![]() Here is a very useful lisp that we found to accomplish this task. He needed to show the area of many rectangles in the drawing. One of my colleagues asked me for a lisp that calculates the area of multiple rectangles in the AutoCAD Drawing. Now you can leave the command by pressing the enter key, and all of the results will be displayed on the screen. First, it asks for the scale of text, and then upon selection of polylines, it shows the area of every polyline inside it. When you type the command AREAON, nothing will seem to occur, on the screen but in the background, the lisp has started functioning. The result gives a textwritten area figure inside each polyline area. Using AutoLisp can make this process a little easier, especially when needing to format the units to be different from the measured linear units i.e. ![]() It is a lisp routine that helps too much, as a quantity surveyor needs to calculate the area and volume-based closed polylines. I have posted a series of articles in the past as to how text fields could be used to show areas of such objects as hatches or polylines: AutoCAD Areas - Part 1, AutoCAD Areas - Part 2, AutoCAD Areas - Part 3. The above lisp is very helpful to save a lot of time otherwise we will have to do the above operation manually which is time taking and sometimes results in errors. You can select various Insertion Scale Factors, Rotation Angles, choose to add a Suffix to the Area's value such as SF or SM and show the Area value formatted to a given decimal Precision using Dot or Comma or Rounded Up or Down.It displays the area of all Polylines separately.You can also enter a custom area measuring Factor. The Area value can be measured both in Imperial units (Square Feet, Square Inch, Square Yard, Square Mile or Acre) & in Metric units (Square Meter, Square Centimeter, Square Millimeter, Hectare or Square Kilometer).Both Imperial (1 unit = 1 Foot or Inch) & Metric (1 unit = 1 Meter, Decimeter, Centimeter or Millimeter) drawing units are supported.Update - gives the user the option to select pre-built AOL Block, Attribute, MText and Text objects with Fields that contain linked Area values updating them to match the current AOL Option settings.Show - allows the user to select an Attribute, MText or Text with Fields to show the object(s) highlighted & shaded that have linked Area values.Insert - proceeds to insert a pre-built AOL Block and then links using Fields the Attributes to already drawn Circles, Ellipses, Hatches, Plines or Regions' Area value.Link - simplifies steps needed to Link the Area value of already drawn Circles, Ellipses, Hatches, Plines or Regions as Fields to already placed Attribute, MText or Text.AOL provides a graphic user interface (GUI) adding 4 new & powerful commands to facilitate the implementation of Fields but bypassing the complexity of the Fields GUI. Area Object Link (AOL) is an add-in app coded entirely using AutoLISP®/Visual LISP® offering 100% Autodesk® AutoCAD® compatibility. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |