AutoCAD Land Desktop

AutoCAD Land Desktop

Reply
New Member
ma_wilson
Posts: 2
Registered: ‎10-29-2012
Message 1 of 4 (1,296 Views)

Aignment Lisp to Label PI'S

1296 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

 

 

*Expert Elite*
Jeff_M
Posts: 4,521
Registered: ‎07-22-2003
Message 2 of 4 (1,138 Views)

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
New Member
ma_wilson
Posts: 2
Registered: ‎10-29-2012
Message 3 of 4 (1,117 Views)

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?

 

 

*Expert Elite*
Jeff_M
Posts: 4,521
Registered: ‎07-22-2003
Message 4 of 4 (1,109 Views)

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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.