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

add and print in pdf plate with progressive number: possible? how?

  • Thread starter Thread starter reggio
  • Start date Start date

reggio

Guest
add and print in pdf plate with progressive number: possible? How?

hi instead of creating "dedicated" metal tag every time, for certain machines we thought to use a plate prepared first, all equal, with only the number of progressive freshman.

I am therefore now having to choose whether to change and print by hand, one by one, about 200 plates with progressive number, or .. break the boxes here and ask if there was no more smart and automatic method to get 200 pdf of high quality :)

What do you say? start moving on the keyboard or can you suggest a magic trick? :
 
I don't know what you have to do.
Can you explain what you mean by "change and print your hand"?
how are the drawings managed?
Is the progressive code inside the design?
...... .
 
ciao @massivonweizen , thank you
I have 1 dwg file with the plate you see in image, I must get
1 print pdf 600pti color scale 1:1 with serial number = 200/22
1 print pdf 600pti color scale 1:1 with serial number = 201/22
1 print pdf 600pti color scale 1:1 with serial number = 202/22
...
1 print pdf 600pti color scale 1:1 with serial number = 499/22

pdf can all be in one file or divided
I don't need to save 1 dwg for every freshman but if necessary, then I throw them

I think I need a macro or lsp asking for start and end number, issue number, press... but I don't know where to start...
 

Attachments

  • targhetta.webp
    targhetta.webp
    63.6 KB · Views: 7
 
... uhmmm I understand how I should do my script...
(in 2018 you had helped me with change of batch cards starting from excel files that created scripts - but you had put the commands because I don't know where to fish them but I think "basti" know commands and you can do it by hand)

Meanwhile, the script is a txt file that saves with .scr true?
once created it launches from gestures/applications/exegui script right?

Okay and now?
maybe the script cannot work on my open file and then close must and start with the command

open (open a file - but the command is open or _open ?)
"file.dwg path" (file name to open; the quotes serve for long names and with spaces - is there no way to allow the choice of files with navigation? must we put forced path? )

next step? maybe _mtedit (to edit the text?) but how do I choose just the text I want to change and not another randomly? And then, how do I tell him to add a number?

. after I imagine you have to confirm the text,
out of change,
Maybe _plot? (to print) but how do I choose pdfcreator a4 color 1:1 window (always the printing area equal) print and add to pdf file (to have only one file)?
@massivonweizen Do you want and patience to explain the various steps and commands?
... from this becomes a tutorial that also applies to others;-p
 
by so becomes a tutorial that also applies to others;-p
of script tutorials I think I've done enough.
half of your questions have already been explained elsewhere

already this question
The script is a txt file that saves with .scr true?
highlights that I don't even hit you a bit to do some research because just write in google autocad script to get the answer immediately.
 

Attachments

  • Immagine.webp
    Immagine.webp
    34.5 KB · Views: 5
what you need is relatively easy, in any case, to write the program you need to take into account the printer you use, the print format, location, style and height of the text, the pdf to create must have the name of the dwg file and the reference to the number that identifies the plate, all things that take away time.
If you need a point to write the program, well, you are in the right place, if you expect the finished product, less well, "the river pulls stones", I hope to have been clear.
 
autocad 11? lavori ancorates his two?
(pardon I didn't read your - sometimes on this forum I don't get some response alerts ...)
? did you make acad11/dos joke or did you mean that with dos there could be a solution? :
 
It is easy, rognosed, all things that take away time.
if you need a good point, if you expect the product less well, "the river pulls stones"
I never heard of the river.is said when the wallet cries misery - the situation evolves in worseThank you. @rpor66 , look, I would say that for this time I will solve by hand "to do first", however, if you would like to create here, to fury of cask and answer, a little game that works, as I said with the good massivonweizen, could be of help to others too:)
(a flunk of misunderstandings, I don't always want the pappa ready, although I like it, only that personally it is difficult to study from scratch a language, much more effective to find a help that makes you learn about concrete and immediately useful examples, which then encourages you to continue and search more in depth)if you have/you have desire and patience and courage;-p we can try, I do the ignorant and you the master, without haste, without pretenses ... ' '
 
the autocad pilot xlsm file, enter the coordinates relative to the text, the height and the text style is the current one, the cells from/to must contain numbers, formatted for how you want them inside the plate, print using dwg to pdf, a4, centered format, current print style.
you must associate the library with the version of autocad you use, from vba editor, tools/references.
created pdf files are stored in the same directory as the dwg.

Good job
 

Attachments

the autocad pilot xlsm file, enter the coordinates relative to the text, the height and the text style is the current one, the cells from/to must contain numbers, formatted for how you want them inside the plate, print using dwg to pdf, a4, centered format, current print style.
you must associate the library with the version of autocad you use, from vba editor, tools/references.
created pdf files are stored in the same directory as the dwg.

Good job
ciao @rpor66 after having solved by hand last time, I wanted to learn how to use your macro but I encounter difficulties:

initially a bookcase error, solved thanks to your note "you must associate the library relative to the version of autocad you use, from vba editor, tools/references." (note: removed the autocad library 2021 and put only that for autocad 2011 - it does not stand more than a autocad library)

adds the text to the correct coordinates, but now it blocks for another error:1653123688752.pngif I move with the mouse over the string appears to me
acad.activedocument.activelayout.configname = "no"

set up this point too, you said to use "dwg to pdf" that I didn't know what it was, but I solved with this link come creare un nuovo driver "dwg to pdf.pc3" in autocad | autocad | autodesk knowledge networkok, now I see that it creates the pdf file, puts them in folder, the problem is that:
does not insert the texts anymore, and does not follow as before the cohorts x,y indicated, but I see the pdf without text and in position that seems random...
Could you help me and suggest a solution?
 

Forum statistics

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

Members online

No members online now.
ciao
Back
Top