krpruett Posted September 3, 2014 Posted September 3, 2014 Newb on CADtutor here so bear with me. I currently make technical illustrations using AutoCAD. When numbering the parts catalog illustrations I number each item the same "XX" then once I have assembled the parts list I go about numbering each item. I'd like a routine that after I change the text to a number other than XX, the text will change color and layer so that it will confirm the number is changed and done with. The layer I change it to would be turned off so that it would disappear during the process. I do this hundreds of times and would like it to be much faster. Once I find someone who can accomplish this then there are a number of other routines that may prove beneficial in a similar format. I basically need a "Numbering Mode" I can turn on and off. Thanks in advance. Quote
Tharwat Posted September 3, 2014 Posted September 3, 2014 Hi, Welcome to CADTutor . I have just finished from writing this lisp so try it and let me know . Compiled lisp with vlx format in the attached folder . Num.rar Quote
krpruett Posted September 3, 2014 Author Posted September 3, 2014 Isn't it supposed to be in .lsp format? Quote
Tharwat Posted September 3, 2014 Posted September 3, 2014 Isn't it supposed to be in .lsp format? It is lisp file but it is complied to avoid access to my private codes . Quote
krpruett Posted September 3, 2014 Author Posted September 3, 2014 Gotcha, thanks I'll check it out. Quote
krpruett Posted September 3, 2014 Author Posted September 3, 2014 Looks and works great. Is there a way to make it so that there is only the menu 1 time to set the layer and if it is off or not, then run through through all number changes and as i press enter they disappear. Also, can you add a setting to change the text color. So the process would be enter "num" command, set settings for layer, color, layer on/off, then click on each number to edit it and after I hit enter to confirm the change, it will then change layer and color as I change each one. Maybe a continuous option vs. a 1 time only option on the window? Quote
Tharwat Posted September 3, 2014 Posted September 3, 2014 I am confused with all these requests . Can you explain in more details ? Quote
krpruett Posted September 3, 2014 Author Posted September 3, 2014 I want to be able to type in "num" and have settings for value, layer and layer mode like you have it but add in options for text color and if the command is continuous or 1 time only. If it is continuous then I can click on the text, change it and then hit enter. After I hit enter, the text will change and move to new layer but I will stay in the "num" command so that I can move to the next text to be changed using those same settings for layer, color and layer mode. If the command is 1 time only then I will change the text and hit enter and the command will end. Hope that helps. Quote
Tharwat Posted September 3, 2014 Posted September 3, 2014 But the color option is already added to the dialog , so what text color you are asking for ? Quote
krpruett Posted September 3, 2014 Author Posted September 3, 2014 You're right, my apologies. So can the other be done? Quote
Tharwat Posted September 3, 2014 Posted September 3, 2014 Okay , let me explain it for you as a matter of steps ( process ) First you want to invoke the command "num" then you would set the dialog options then after you hit Okay , you would like to keep on selecting texts to change their values as required one by one . Am I on the right way ? Quote
krpruett Posted September 3, 2014 Author Posted September 3, 2014 Yes, then when I am done just end the command. Quote
Tharwat Posted September 3, 2014 Posted September 3, 2014 All right , now it is almost midnight here and tomorrow morning I will modify the program at the office and would upload it for you to use . Quote
krpruett Posted September 3, 2014 Author Posted September 3, 2014 Agreed. I forget time difference. Much appreciated. Quote
Tharwat Posted September 4, 2014 Posted September 4, 2014 Try this new modification and let me know . Num.rar Quote
krpruett Posted September 4, 2014 Author Posted September 4, 2014 Perfect! Works easily and now I have a numbering mode of sorts. Thanks for your help and patience. Quote
Tharwat Posted September 4, 2014 Posted September 4, 2014 Perfect! Works easily and now I have a numbering mode of sorts. Thanks for your help and patience. Excellent , you are most welcome . 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.