Jump to content

Numbering In Autocad


Recommended Posts

Posted

Dear Friends

Is There Any Way That I Can Select Some Objects In Acad

And Then Acad Put A Text Beside Each Object Automatically?

Posted

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.

Posted

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

Posted

Look below at 'Similar Threads' or do a search for Autonumber

Posted

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: "))
  )
)

Posted
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

Posted

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.

Posted

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.

Posted

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.

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...