iain9876 Posted January 26, 2009 Posted January 26, 2009 I have a survey in 2d. i need to update the level text by adding 0.291 to all the numerical level text in the drawing. Does anyone have a lisp routine to do this. Any help is most appreciated. Iain:cry: Quote
rkmcswain Posted January 26, 2009 Posted January 26, 2009 I have a survey in 2d. i need to update the level text by adding 0.291 to all the numerical level text in the drawing. Does anyone have a lisp routine to do this. http://www.google.com/codesearch/p?hl=en#r4lrYVTX5vk/ADDVAL.LSP&q=c:addval%20lang:lisp Quote
iain9876 Posted January 26, 2009 Author Posted January 26, 2009 cheers RK. tried that I get this..error Command: ADDVAL Hinzuzuzählender Wert: 0.291 Select objects: Specify opposite corner: 9979 found, 27 groups Select objects: ; error: bad argument type: stringp nil any ideas? Quote
Rooster Posted January 26, 2009 Posted January 26, 2009 Does anyone have a lisp routine to do this. Iain:cry: I use this LISP to change numerical values. Hope it works for you P2_lev-values.LSP Quote
iain9876 Posted January 26, 2009 Author Posted January 26, 2009 cheers rooster, will give it a go. Quote
eldon Posted January 26, 2009 Posted January 26, 2009 If you do a search for TEXTMATH, yoiu will find a very useful Lisp which does exactly what you are wanting Quote
Rooster Posted January 26, 2009 Posted January 26, 2009 cheers rooster, will give it a go. No problem - nice to be able to dish out some help for a change! Quote
iain9876 Posted January 26, 2009 Author Posted January 26, 2009 Many thanks everyone Both work just fine, that has saved me an enormous amount of work. virtual pints on me Quote
rkmcswain Posted January 26, 2009 Posted January 26, 2009 cheers RK. tried that I get this..error Command: ADDVAL Hinzuzuzählender Wert: 0.291 Select objects: Specify opposite corner: 9979 found, 27 groups Select objects: ; error: bad argument type: stringp nil any ideas? That routine works fine as long as you only select TEXT entities. It just doesn't have a TEXT filter on the (ssget) call and the rest of the code is not expecting other entity types. Quote
Recommended Posts
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.