Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: LISP routine for Area Command

  1. #1
    100 Club
    Join Date
    2005-01
    Posts
    115

    Default LISP routine for Area Command

    Not sure I'm in the right forum, but looking for a routine that will calculate the area of an object and return a value as mtext within that area.

    Thanks
    Mac

  2. #2
    Active Member rvpas2000's Avatar
    Join Date
    2002-05
    Location
    VILLEURBANNE - nearest of LYON- France
    Posts
    84

    Default Re: LISP routine for Area Command

    Do you know field command ?

    pascal

  3. #3
    Member
    Join Date
    2009-05
    Location
    Dubai (UAE)
    Posts
    21

    Post Re: LISP routine for Area Command

    i hope this LISP routine will help u.
    Attached Files Attached Files
    • File Type: lsp at.lsp (958 Bytes, 75 views)

  4. #4
    100 Club
    Join Date
    2005-01
    Posts
    115

    Default Re: LISP routine for Area Command

    Yes, the field command will do the trick, Ideally looking for a routine that would prompt to draw a polyline or a rectangle, then calculate the area and place the field / data in the center. 1 move instead of 4, since I have many objects to calculate

    Thanks
    Mac

  5. #5
    100 Club
    Join Date
    2005-01
    Posts
    115

    Default Re: LISP routine for Area Command

    That routine works very well, thanks,
    I can't read the promt though (it's a language other than english)
    Mac

  6. #6
    Member
    Join Date
    2009-05
    Location
    Dubai (UAE)
    Posts
    21

    Smile Re: LISP routine for Area Command

    Quote Originally Posted by jocques View Post
    That routine works very well, thanks,
    I can't read the promt though (it's a language other than english)
    U welcome.r u civil draftsman or engineer?i have more lisp related with civil works.

  7. #7
    Certifiable AUGI Addict irneb's Avatar
    Join Date
    2007-07
    Location
    Jo'burg SA
    Posts
    4,344

    Default Re: LISP routine for Area Command

    Or to combine the lisp & fields: place a field inside a MText (DText or Attribute) you could use mine: http://forums.augi.com/showthread.php?t=98524

    Allows for multiple objects in one area (addition & subtraction). And because it creates a field its value updates if you had changed the objects - no need to do the command again, just a regen should do.
    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

  8. #8
    100 Club
    Join Date
    2003-06
    Location
    North Dallas
    Posts
    160

    Default Re: LISP routine for Area Command

    I've written one that allows you to select polylines. So you would draw your polyline(s) and start by typing area2 select pline, select text point and so on. hit Escape to end.

    BTW it automatically creates a SQFT layer and puts the plines and text on that layer.
    Attached Files Attached Files

  9. #9
    Member
    Join Date
    2006-10
    Location
    Hershey, PA
    Posts
    27

    Default Re: LISP routine for Area Command

    Quote Originally Posted by jocques View Post
    I can't read the promt though (it's a language other than english)
    It is in Polish

  10. #10
    Active Member beardking's Avatar
    Join Date
    2009-07
    Posts
    82

    Default Re: LISP routine for Area Command

    Quote Originally Posted by irneb View Post
    Or to combine the lisp & fields: place a field inside a MText (DText or Attribute) you could use mine: http://forums.augi.com/showthread.php?t=98524

    Allows for multiple objects in one area (addition & subtraction). And because it creates a field its value updates if you had changed the objects - no need to do the command again, just a regen should do.
    I've loaded your lisp routine that was in the thread that you linked to and I have one question. Is there any way to revise it so that is works in Architectural measurements rather than decimal? I noticed you can switch from m to mm, but I can't figure out how to switch to feet and inches.
    Using AutoCAD 2009 to about 60% of it's potential daily.

Page 1 of 2 12 LastLast

Similar Threads

  1. Use Saveas Command from a Lisp Routine
    By CADdancer in forum AutoLISP
    Replies: 6
    Last Post: 2011-06-23, 03:01 PM
  2. Replies: 15
    Last Post: 2009-03-22, 03:08 PM
  3. LISP routine to draw area of fill from point Blocks
    By jchinchilla in forum AutoLISP
    Replies: 1
    Last Post: 2006-05-22, 08:56 PM
  4. BURST command in Lisp Routine
    By mhollar in forum AutoLISP
    Replies: 6
    Last Post: 2005-12-19, 10:08 PM
  5. LISP Routine that works with AREA command
    By Paul.C.Rasmussen in forum AutoLISP
    Replies: 5
    Last Post: 2004-09-09, 09:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •