• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

numbering decks in automation

  • Thread starter Thread starter zintonio
  • Start date Start date

zintonio

Guest
Hello.
I need to create a program that does the following:
I click on pattern point and then puts me, for example value 3.
Then I click on another point and puts the value 4 and so on.
the important thing is that the first number is insertable... .
example:
command: num
insert value: 3
and then I start clicking on the template points to number these points.
I hope I've been clear.
Thank you.
 
thanks rpor66,

at first the post function gave me problems in the sense that he told me
"5" unknown command. then I replaced
(command "_text" "_j" "_m" pt """ (rtos num 2 0))
with
(command "_text" pt "0" (rtos num 2 0))
and it works very well, doing exactly what I wanted to get.
I wonder why the post command had problems, you know something about it?
Thanks again for the tip:finger:
 
the definition of the text style you use, imposes the height of the character.
it comes that during the use of the text command there is no need to input it, here explained the reason for diversity.
(command "_text" "_j" "_m" pt """ (rtos num 2 0)
(command "_text" "_j" "_m" pt "" (rtos num 2 0)

bye
 
I made a lisp that does exactly what you say... In addition you can choose the starting number, the increment (the step) and, in case the step is not whole, the n. of decimals.

the command ends by sending or clicking in an empty area and not on a text.

to charge it:
(load "number")

to execute it:
numera
 

Attachments

thanks x11start
great lisp!:finger:
I am noticing however that, to use such lisp, I must have by force of the already existing texts in the drawing. very often I do not have texts but only an array of elements/blocks that I have to number, so I would be more comfortable to enter the starting number and then click on points of the drawing to insert the nuemration. I would be very grateful if you can change the lisp you posted so, as it is a lisp made very well.
Thank you.
 
here is done: now you can choose if to write the numbers (as from your request), using the choice "s" or change the existing ones using "c".
the text height is required and by default the last height used is proposed.

.... but I still prefer to create "finti" texts, e.g. asterisks and then change them by clicking on them. this because in this way I place them all at the desired point: e.g. if I want to number a series of drawings, place the first asterisk close to the drawing and then copy it using a basic point of the drawing itself, so all asterisks (and therefore future texts) will always be placed at the same distance as the drawing ..... also the eye wants its part ....
 

Attachments

Thank you very much x11start,
a great lisp, that was exactly what I needed.

great also the advice to write fake texts to place them in a precise and orderly manner.
:finger:
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top