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
    119
    Login to Give a bone
    0

    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

  2. #2
    Active Member
    Join Date
    2002-05
    Location
    VILLEURBANNE - nearest of LYON- France
    Posts
    84
    Login to Give a bone
    0

    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
    Login to Give a bone
    0

    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, 173 views)

  4. #4
    100 Club
    Join Date
    2005-01
    Posts
    119
    Login to Give a bone
    0

    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

  5. #5
    100 Club
    Join Date
    2005-01
    Posts
    119
    Login to Give a bone
    0

    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)

  6. #6
    Member
    Join Date
    2009-05
    Location
    Dubai (UAE)
    Posts
    21
    Login to Give a bone
    0

    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
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    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.

  8. #8
    100 Club
    Join Date
    2003-06
    Location
    North Dallas
    Posts
    168
    Login to Give a bone
    0

    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
    Login to Give a bone
    0

    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
    Join Date
    2009-07
    Posts
    95
    Login to Give a bone
    0

    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.

Page 1 of 2 12 LastLast

Similar Threads

  1. LISP Routine that works with AREA command
    By Paul.C.Rasmussen in forum AutoLISP
    Replies: 7
    Last Post: 2016-01-03, 07:52 PM
  2. Use Saveas Command from a Lisp Routine
    By CADdancer in forum AutoLISP
    Replies: 6
    Last Post: 2011-06-23, 03:01 PM
  3. Replies: 15
    Last Post: 2009-03-22, 03:08 PM
  4. 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
  5. BURST command in Lisp Routine
    By mhollar in forum AutoLISP
    Replies: 6
    Last Post: 2005-12-19, 11:08 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
  •