Results 1 to 3 of 3

Thread: Lisp for Handle

  1. #1
    Member
    Join Date
    2008-03
    Posts
    7
    Login to Give a bone
    0

    Default Lisp for Handle

    How can i write a lisp to extract the handle of an object and then paste it in the dwg?

  2. #2
    All AUGI, all the time
    Join Date
    2015-12
    Location
    Central Oregon
    Posts
    591
    Login to Give a bone
    0

    Default Re: Lisp for Handle

    real quick basics...
    Code:
    (setq ent (car (entsel "\nSelect entity: ")))
    (setq handl (cdr (assoc 5 (entget ent))))
    (command ".text" pause 0 handl "")
    may need to play with the text command inputs if you are using a style with/without a set height.
    Last edited by Opie; 2008-07-11 at 03:21 PM. Reason: fixed code tag

  3. #3
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,803
    Login to Give a bone
    0

    Default Re: Lisp for Handle

    It might be worth mentioning that you can also use a field to do this.
    Not with the UI, but with lisp you can do it. You just need to extract the ObjectID and plug it in this Field string.

    Code:
    
    
    %<\AcObjProp Object(%<\_ObjId 2129671512>%).Handle>%
    
    R.K. McSwain | CAD Panacea |

Similar Threads

  1. Lisp to extract Handle
    By tguy in forum AutoLISP
    Replies: 11
    Last Post: 2012-03-13, 03:04 PM
  2. How do you handle ASK's
    By cr_gixxer in forum Revit Architecture - General
    Replies: 16
    Last Post: 2011-10-27, 11:40 AM
  3. How do you handle SK's
    By tim.101799 in forum Revit - In Practice
    Replies: 4
    Last Post: 2007-10-31, 06:36 PM
  4. How do you handle your railings in CD's
    By dnilsson in forum Revit Architecture - General
    Replies: 4
    Last Post: 2007-06-15, 06:28 PM
  5. Replies: 5
    Last Post: 2007-04-30, 08:14 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
  •