Jump to content

Put label before the distance


datalife

Recommended Posts

Hello ;

I have a lisp that measure the length of a line;

but I want to label it see below:

 

 

Existing lisp:

 

_____________________________

10.5

 

New lisp:

 

______________________________

L = 10.5

 

Where L = is the label I need. Anyone can help

me on the new lisp?

 

Thanks

plen.lsp

Link to comment
Share on other sites

Hi .

 

Just modify this line from the code ...

 

(setq tStr [color=blue][b](strcat "L= "[/b][/color] (rtos (vla-get-length (vlax-ename->vla-object cEnt)))[b][color=blue])[/color][/b]

Link to comment
Share on other sites

Hi

This routine looks perfect to me. But if wanna put sufix.

E.g. 23.63m

 

Which line should I have modifying?

 

Regards

 

Like this ...

 

(setq tStr [color=blue][b](strcat [/b][/color](rtos (vla-get-length (vlax-ename->vla-object cEnt))) [b][color=blue]"m")[/color][/b])

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...