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

batch create an automatic etransmit series without opening files

  • Thread starter Thread starter terri87
  • Start date Start date

terri87

Guest
buongiorno a tutti,
esiste qualche lisp che mi permetta di creare in batch una serie di etransmit in automatico senza aprire ogni singolo file dwg.
tenete conto che stiamo parlando di più di 100 dwg, quindi avrei un risparmio di tempo non indifferente.

mi hanno passato uno script ma non riesco a capire cosa non va, di seguito il contenuto

echo off
:: etrasmit_multiple.bat
:: to use, place this file along with etraasmit_multiple.scr in a folder with the autocad drawings to be checked.
:: open autocad 2015 or later and access a license. then close the current drawing, but leave the window open.
:: afterwards execute this file by double-clicking it (close this windows first).

:: impostazioni di etrasmit
:: type:: *.zip
:: file format:: keep existing drawing file formats
:: trasmittal file folder:: "persorso destinazione file zip"
:: trasmittal file name:: overwrite if necessary

:: command lines
:: deletes previous versione of etrasmit_multiple.txt and create a new one.
del "etrasmit_multiple.txt"
type nul>etrasmit_multiple.txt

::finds autocad
set path=c:\program files\autodesk\autocad 2018\acad.exe

:s_d
echo.
echo sdsd
echo.
echo s_d
echo.
pause
goto:ultimissimo

:: runs autocad, then opens each drawing in turn and executes cowi_check script from within it.
:end
for %%f in (*.dwg) do start /wait %path% "%%f" /b etrasmit_multiple.scr

:ultimissimo
:: deletes all .bak files (automatically generated by autocad when drawing is opened) in the directory.
for %%f in (*.bak) do del %%f

::rinomina tutti gli zip
[MENTION=6530]echo[/MENTION] off
setlocal enabledelayedexpansion
for %%f in (* - standard.zip) do (
set "name=%%f
ren "!name!" "!name: - standard=!"
)
 
because this is a batch that recalls an etrasmit_multiple script, which I think you do not have and wants an etrasmit_multiple.txt that I think you have not compiled. . .
this is the right opportunity to learn how scripts work, it is worth 100 files
I give you a tip on how to get the list of all dwg in a text file.
placed with the Command prompt in your dwg folder, and from your keyboard /b *.dwg >list.txt
 
I apologize to crystal, but I accodorate..I have the same need to realize a set of etrasmits with my settings.

I don't understand what batches, scripts, etc.
Can you translate?
 

Forum statistics

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

Members online

No members online now.
Back
Top