naserrishehri@yahoo.com Posted July 13, 2010 Posted July 13, 2010 Dear Friends Is There Any Way That I Can Select Some Objects In Acad And Then Acad Put A Text Beside Each Object Automatically? Quote
BIGAL Posted July 14, 2010 Posted July 14, 2010 Quick answer is yes, with a lisp etc search here for auto numbering good starting point is to search first this has been answered numerous times different ways of doing it. Quote
naserrishehri@yahoo.com Posted July 14, 2010 Author Posted July 14, 2010 Dear Friend Thanks For Your Help.please Send Me A Good Lisp To Solve My Problem Or Give A Link If You Can. Kind Regards Quote
lpseifert Posted July 14, 2010 Posted July 14, 2010 Look below at 'Similar Threads' or do a search for Autonumber Quote
Bill Tillman Posted July 14, 2010 Posted July 14, 2010 I found this nice little lisp program somwhere. Maybe it was even here in this forum, but it works nicely for my needs. (defun C:ITEXT () (setq myheight (getreal "\nEnter text height: ")) (setq mynumber (getint "\nEnter begining number: ")) (setq myincrement (getint "\nEnter increment step: ")) (setq mypoint (getpoint "\nPick Point: ")) (while mypoint (command "text" "j" "m" mypoint myheight "0" (itoa mynumber)) (setq mynumber (+ mynumber myincrement)) (setq mypoint (getpoint "\nPick point: ")) ) ) Quote
naserrishehri@yahoo.com Posted July 15, 2010 Author Posted July 15, 2010 Look below at 'Similar Threads' or do a search for Autonumber dear friend i looked for autonumbering and i found some useful lisps but i need a lisp that automatically after selecting objects put a number beside them. if you found please tell me. kind regards Quote
BIGAL Posted July 16, 2010 Posted July 16, 2010 As has been mentioned before this site is not a "someone will write every program that people ask for" but rather a help full source of information on how to meet your needs by example. Yes often someone has done exactly what you want, the responses above have tried to help you. If you try yourself others will help you along the way. I go back to Autocad 1.4 and I often ask for help in solving problems with new programs that I write but I try first. Quote
Bill Tillman Posted July 16, 2010 Posted July 16, 2010 Well I can't say that the lisp code I posted will work exactly the way you referenced but where ever you click your mouse while running this lisp it will insert a number and in sequential order using whatever increment you wish. As for selecting an object first and then placing a number or any text beside it...that could be done I guess but I see some drawbacks, like how to tell the lisp to place the text so it doesn't interfer with other existing objects or text. As mentioned, if you post in the AutoLisp forum there are some very talented programmers here who could probably help you with this. Good luck. Quote
naserrishehri@yahoo.com Posted July 17, 2010 Author Posted July 17, 2010 dear friend thanks a lot for your useful lisp.it can help me a lot . kind regards Well I can't say that the lisp code I posted will work exactly the way you referenced but where ever you click your mouse while running this lisp it will insert a number and in sequential order using whatever increment you wish. As for selecting an object first and then placing a number or any text beside it...that could be done I guess but I see some drawbacks, like how to tell the lisp to place the text so it doesn't interfer with other existing objects or text. As mentioned, if you post in the AutoLisp forum there are some very talented programmers here who could probably help you with this. Good luck. 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.