Display full version of the post: Is it possible to increase numerical values?

LiamPlazaLTD
09.03.2016, 18:33

Im fairly new to Cad so thought this was the best place to go for extra knowledge, I have loaded a level survey into CAD via dxf. The Original Datum given was incorrect so I want to change the level values by a fixed amount (in this case 0.500) can this be done to every value at the same time or do I have to go through individually and change them manually. Thanks in AdvanceLiam

John Connor
09.03.2016, 20:05
It can probably be achieved by using a custom lisp routine.  Kent Cooper might know of one.  I'd do a search but I'm off to a safety meeting.  Don't let that hamper you from searching though.  I'll check back later and see if you had any success.Search for a lisp routine that will add a certain value to each and every object (text?) in the drawing.
John Connor2016-03-09 20:06:36

John Connor
10.03.2016, 14:23
Any luck?Since you did not say whether this number that you want to add to is text or an attribute I'm not sure what to search for.Update.I found a custom lisp routine that will parse numbers that are entered as text and it allows the user to select individually or select > All.  I've tested it and it does work.  Interested?


John Connor2016-03-10 14:52:03

LiamPlazaLTD
10.03.2016, 14:59

Sorry been at work. I have no luck, partly because I had to search what a lisp routine is first haha.Im slowly growing my knowledge but when I think im getting the hang of CAD other areas of use come to life! If you have had some luck any advice will be appreciated.  The survey has been loaded from a Leica machine as a DXF and came in as one block so Ive exploded the drawing so I believe they are separate text cells now? Cheers Liam

John Connor
10.03.2016, 15:28
I'll attach it forthwith.  Give me a moment (or two).  OK...here you go.  Use the APPLOAD command to load the routine into AutoCAD then at the command line type TEXT_INC and the routine will start.  Pay close attention to what you are being asked on the command line.  It is fairly straight forward so you should not have a problem.  You can rename the file to something more suitable as it is really only an ASCII text file.uploads/165260/test.lsp
John Connor2016-03-10 15:31:53

LiamPlazaLTD
10.03.2016, 18:04
Top man! Once im back home I'll get on it. Thanks very much for taking your time to look into this for me. Cheers liam

LiamPlazaLTD
10.03.2016, 18:24

Couldn't wait, had to give it a try. Works spot on!! Thank you very much sir!Liam

John Connor
10.03.2016, 18:36
Happy to hear it solved your problem.  You're welcomed.