AutoCAD Land Desktop

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

Aignment Lisp to Label PI'S

1247 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,227
Registered: ‎07-22-2003
Message 2 of 4 (1,089 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,068 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,227
Registered: ‎07-22-2003
Message 4 of 4 (1,060 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community