Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...