• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Land Desktop

    Reply
    New Member
    Posts: 2
    Registered: ‎10-29-2012

    Aignment Lisp to Label PI'S

    898 Views, 3 Replies
    10-29-2012 10:10 AM

    Hello all

    I am trying to label the PI's on my alignment.  I need to have the PI show something along these lines 

    P.I. 214+58.58

    I have found the lisp routine below and have loaded it.  When I try to use it I get a error

    Please select an alignment: *Cancel*
    no function definition: E->V

     

    How to I fix this?  or how can I get this to work?

     

    Thanks

     

     

    Please use plain text.
    *Expert Elite*
    Posts: 3,032
    Registered: ‎07-22-2003

    Re: Aignment Lisp to Label PI'S

    11-13-2012 12:03 PM in reply to: ma_wilson

    Hi, which version of LDT are you using? This lisp was last updated for use with LDT2008.

     

    And I'm not sure how, after 8 years this has been posted, no one has caught this ommission until now. If you add the following bit of code to the very top, or very bottom (before or after any of the existing parenthesis) it should load and run on versions up through Ldt2008.

    (defun e->v (ent)
      (vlax-ename->vla-object ent)
      )
    

     

    Jeff_M, also a frequent Swamper
    Please use plain text.
    New Member
    Posts: 2
    Registered: ‎10-29-2012

    Re: Aignment Lisp to Label PI'S

    11-15-2012 11:26 AM in reply to: ma_wilson

    I am using LDT 04 for the civil package.

     

    I added your code to the end of the file (an have attached it here)

     

    and this is the error I get now

     

    Command: label_tan_pi
    *Cancel*
    no function definition: GET_SPACE

     

    Any ideas on this one?

     

     

    Please use plain text.
    *Expert Elite*
    Posts: 3,032
    Registered: ‎07-22-2003

    Re: Aignment Lisp to Label PI'S

    11-15-2012 08:13 PM in reply to: ma_wilson

    Sorry about that. I have a number of helper routines that I load in acaddoc.lsp. Normally when I post these routines I make sure to include those that are needed, obviously I missed a few on this one.

     

    Attached is a revised version with the get_space function included. In order to save time, feel frr to email me direct if you still have problems (I no longer have LDT installed to test this with, so I'm counting on you to tell me what it still needs.....I hope you are OK with that.)

     

    jeffm AT quuxsoft DOT com

    Jeff_M, also a frequent Swamper
    Please use plain text.