Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need a routine to add a constant to numbers

16 REPLIES 16
Reply
Message 1 of 17
dfinlay
435 Views, 16 Replies

Need a routine to add a constant to numbers

I have a drawing full of existing ground levels on a topographical plan and need to globally adjust each level number by a constant. ie. 50.00 + 1.50 etc..... adding 1.50 to all existing numbers. Is there a routine or something else that can help me achieve this? Life would be so much easier!!!! Thanks.
16 REPLIES 16
Message 2 of 17
btlsp
in reply to: dfinlay

Try Addl, at http://www.btlsp2000.com/page9.html.
Message 3 of 17
btlsp
in reply to: dfinlay

Addl,(See previous post) is updated. Was adding 1.0. Now prompts for user "add" value.
Message 4 of 17
dfinlay
in reply to: dfinlay

I tried it but it wouldn't work in AutoCAD 2002.
Any ideas????
Message 5 of 17
btlsp
in reply to: dfinlay

Have you loaded the fntn files?
Message 6 of 17
btlsp
in reply to: dfinlay

Also, set the text style height.
Message 7 of 17
Anonymous
in reply to: dfinlay

Are you wanting to CHANGE what the existing text
says?  Or create new text item with this new number.

 

Either way is feasible--but I would have to know
which way you were looking to go.

 

Also in the example you provided, I assume the new
number would be "51.50".  Is that correct.


style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
I
have a drawing full of existing ground levels on a topographical plan and need
to globally adjust each level number by a constant. ie. 50.00 + 1.50 etc.....
adding 1.50 to all existing numbers. Is there a routine or something else that
can help me achieve this? Life would be so much easier!!!!
Thanks.
Message 8 of 17
dfinlay
in reply to: dfinlay

I just want to be able to add or subtract constant number from all the windowed numbers. I loaded all the FNTN files as well and it still doesn't work. I haven't forgotton the file support path either. When I type " (Load "ADDL.lsp") C:ADDL appears and then the command cancels. Am I doing something wrong?
Message 9 of 17
btlsp
in reply to: dfinlay

Have you loaded Fntn5 and Fntn6?
Message 10 of 17
dfinlay
in reply to: dfinlay

Most definately.
Message 11 of 17
btlsp
in reply to: dfinlay

Well, I, don't know, then. Shall we try, I email you the files?
Message 12 of 17
btlsp
in reply to: dfinlay

After you "load" the file(s), do you type and enter the routine name, addl? This you, must do.
Message 13 of 17
kozmos
in reply to: dfinlay

Go to www.ikozmos.com to download the latest MathAnno2004.ZIP at download center. And new command MANNO can help you doing this more fast.
Remember: MathAnno2004 need DOSLIB loaded.
Message 14 of 17
dfinlay
in reply to: dfinlay

Yeah, I'm sure I've done all the correct things. Could you email the files to me? That would be great thanks.
Message 15 of 17
btlsp
in reply to: dfinlay

dfinlay, what is your email address? I'll send you the files you need. ...BT
Message 16 of 17
dfinlay
in reply to: dfinlay

My email address at work is doug.finlay@middletonwilliams.co.nz

Cheers
Message 17 of 17
deepcastle
in reply to: dfinlay

hi,

Attached is a simple lisp that should
take care of your problem.

It should be noted:

- will add constant too all numerical
text even if the layers are off/frozen.

- Mtext is ignored (for now at least)


Cheers,
John Herbert

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

Post to forums  

Autodesk Design & Make Report

”Boost