PDA

View Full Version : String Calculation


Kio
2008-03-19, 11:02 PM
Hello everyone,
I have a lisp routine that adds up the lengths of lines on a specific layer and prints the output in model space at a specific location. My problem is that the output reads something like this 97'6-1/2" FT. i would like it to read 97'-6 1/2". any help on this would be wonderful.

Thanks in advance,
Kio

ccowgill
2008-03-20, 01:37 PM
Hello everyone,
I have a lisp routine that adds up the lengths of lines on a specific layer and prints the output in model space at a specific location. My problem is that the output reads something like this 97'6-1/2" FT. i would like it to read 97'-6 1/2". any help on this would be wonderful.

Thanks in advance,
Kio get permission from the original author to post the code and then we can help you, it looks like it is just a string for the output that needs to be modified for the different formatting.