AcadCore printing and loading arg

AcadCore printing and loading arg

lisaj98052
Enthusiast Enthusiast
743 Views
4 Replies
Message 1 of 5

AcadCore printing and loading arg

lisaj98052
Enthusiast
Enthusiast

I think someone helped me with this but for some reason this does not run, not sure why.

also can you run a lisp in acadCore?

 

-------------------------------------------------------------------------------------------------

echo off
"C:\Program Files\AutoCAD 2000\acad.exe" /p "K:\AutoCad\Support_Client_Files\kingCounty\Profile\KingCountyC3d 2018.arg
:: Path to AutoCAD core console
set accoreexe=""C:\Program Files\Autodesk\AutoCAD 2018\accoreconsole.exe"

:: Path the directory to process
set "source=C:\CADDLib\pw\lijohnson\west\d0108928\"

:: Path to the script to run
set script="C:\CADDLib\AutoCAD\Projects\68448_ERC\SCRIPT\printsheet.scr"

FOR /f "delims=" %%f IN ('dir /b "%source%\4.01*.dwg"') DO %accoreexe% /i "%source%\%%f" /s %script%
:: comment the following to automatically close the console when batch ends

 

 

 

0 Likes
Accepted solutions (1)
744 Views
4 Replies
Replies (4)
Message 2 of 5

Sea-Haven
Mentor
Mentor
Accepted solution

A few mistakes look at " for a start end.

You will open acad with your arg not sure how that effects aecorconsole

A script supports lisp code within it. No user input. You may get away with a (load "mylisp") mylisp, in your script.

0 Likes
Message 3 of 5

martti.halminen
Collaborator
Collaborator

I hope the AutoCAD 2000 in the path is a typo...

 

I'm not sure about the scripts, but at least for .lsp files AcCoreConsole only loads them if they are on the trusted path, otherwise it ignores them quietly.

0 Likes
Message 4 of 5

lisaj98052
Enthusiast
Enthusiast

Wish I was better at programing, but I'm not.  I may have to just run this in in scriptpro which would be slower but get the job done. Does anyone have a similar lisp that does not use active x?,

It's seems like an easy task for some of you very skilled programmers, but I could be very mistaken.

It seems like it would be so handy to update attribute in files not just title block data but say match lines, etc. form a csv file just before as plotting and in the acad core environment.

 

Thank for all your help and explanations of why the list would not run in this environment.

0 Likes
Message 5 of 5

lisaj98052
Enthusiast
Enthusiast

Thank you this work well. 

0 Likes