AutoCAD Land Desktop (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Aignment Lisp to Label PI'S

3 REPLIES 3
Reply
Message 1 of 4
ma_wilson
1611 Views, 3 Replies

Aignment Lisp to Label PI'S

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

 

 

3 REPLIES 3
Message 2 of 4
Jeff_M
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
EESignature
Message 3 of 4
ma_wilson
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?

 

 

Message 4 of 4
Jeff_M
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
EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report