BuntyBunty Posted April 1, 2010 Posted April 1, 2010 Hi All, I understand that there is a sequential numbering function in Microstation where you can number things like stairs by making the relevant option settings and then clicking once on each stair, the numbers then appearing in sequence, ie; 1, 2, 3, 4 etc without the need to copy and paste each number and then manually change each one. An unenviable task when talking about numbering 200 plus car parking spaces I'm sure you'll agree. Does Autocad have this function? Many thanks. BB Quote
BuntyBunty Posted April 1, 2010 Author Posted April 1, 2010 Cool thanks for that quick reponse, seems to work wonderfully with text already in place. Is there a function that will place a 'new' sequential text number with each successive click ie; without turning a piece of pre-placed text to a number? Many thanks. BB. Quote
jammie Posted April 1, 2010 Posted April 1, 2010 Maybe something like this could start you off, nothing special but should do the trick (defun AddText (<bpt> <string>) (entmake (list (cons 0 "Text") (cons 1 <string>) (cons 10 <bpt>) (cons 40 (getvar 'textsize)) (cons 7 (getvar 'textstyle)) ) ) ) (defun c:nums ( / input ) (or *count* (setq *count* 0)) (if (setq input (getint (strcat "\nStarting number [" (rtos *count* 2 0) "] :"))) (setq *count* input)) (princ "\nSelect insertion point\n") (while (setq input (getpoint (strcat "\r["(rtos *count* 2 0) "] :"))) (AddText input (rtos *count* 2 0)) (setq *count* (1+ *count*)) ) ) (princ "\nAutonumber loaded, type nums to start") (princ) 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.