gazcarr Posted January 10, 2011 Posted January 10, 2011 Hi I am trying to upgrade all the levels on a survey drawing to a new datum level. For example I want add 10m to every level on the drawing. Does anyone know how to do this? I have heard something about lisp routines but I dont have any idea about lisps. Any info would be much appreciated. Thanks Quote
ReMark Posted January 10, 2011 Posted January 10, 2011 This is a 2D drawing we're talking about right? You are trying to change the contour interval of each and every contour right? Quote
gazcarr Posted January 10, 2011 Author Posted January 10, 2011 Yes thats right basically I need to upgrade all spot level heights on the drawing. Quote
ReMark Posted January 10, 2011 Posted January 10, 2011 Perhaps a lisp routine that would read each spot elevation and add 10 to it. Are the elevations plain text or are they blocks with attributes? Quote
gazcarr Posted January 10, 2011 Author Posted January 10, 2011 They are plain text. How do you perform a lisp routine? Thanks Quote
ReMark Posted January 10, 2011 Posted January 10, 2011 One does not "perform" a lisp routine. One "loads" a lisp routine via the Appload command then the routine is executed. Can you give us an example of what the text would look like? Quote
gazcarr Posted January 10, 2011 Author Posted January 10, 2011 Is it possible to do a screen grab and post it on here so you can see the drawing? Quote
gazcarr Posted January 10, 2011 Author Posted January 10, 2011 researching this seems to come up with an addnum lisp routine if this means anything? Quote
ReMark Posted January 10, 2011 Posted January 10, 2011 If AddNum works for you then go ahead. I found one called TextInc (for Text Increment). Yes you can post images to CADTutor via the Go Advanced button and then clicking on the Paperclip icon. Upload the image and insert it into your post. I will not be on CT much longer. Perhaps 10 minutes. Quote
gazcarr Posted January 10, 2011 Author Posted January 10, 2011 I have never used lisp routines before so how do I go about using these codes? Thanks for your help Quote
ReMark Posted January 10, 2011 Posted January 10, 2011 (edited) I believe I mentioned using the Appload command while you are in AutoCAD. Then pick the lisp file you want to load. Ex. - AddNum.lsp. Now here is the tricky part. You have to know what to type at the command line to actually run the command. Normally this information is contained within the lisp routine file as it is not always the name of the lisp file itself although there are times that it is. Example: TextInc.lsp requires the user to type INC at the command line to run the routine. Files ending in the file type lsp can be opened with Notepad (an ASCII text editor). Edited January 11, 2011 by ReMark Quote
gazcarr Posted January 11, 2011 Author Posted January 11, 2011 I have copied the textinc code and pasted it into notepad but how do I save it so that I can find it in appload? Quote
gazcarr Posted January 11, 2011 Author Posted January 11, 2011 All sorted I needed to put .lsp at the end of the save file. Used your text_inc worked a charm. Thanks so much for your help! Quote
ReMark Posted January 11, 2011 Posted January 11, 2011 You appear to be a fast learner. Good. You have now solved your own problem. Better. And you have joined the CADTutor forum community. BEST! Congratulations. You're entirely welcomed. Quote
premph Posted January 11, 2011 Posted January 11, 2011 This is similar to my problem where can i find a copy of textinc.lsp or textmath.lsp? Thanks premph Quote
ReMark Posted January 11, 2011 Posted January 11, 2011 premph: Hint: Return to your original thread. The answer lies within. FYI: It's TextInc.lsp. 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.