Cann't accoreconsole open script file(*.scr) in a network location?

Cann't accoreconsole open script file(*.scr) in a network location?

TiStars
Advisor Advisor
4,128 Views
10 Replies
Message 1 of 11

Cann't accoreconsole open script file(*.scr) in a network location?

TiStars
Advisor
Advisor

Hi,

 

I wrote a bat file to call accoreconsole to open the other script file.  If i put script file in to a shared network drive, I got error message of 

 

"**** System Variable Changed ****
1 of the monitored system variables has changed from the preferred value. Use SYSVARMONITOR command to view changes.


Command:
Command: File load canceled: h:\temp\1.scr"

 

As you see, H: is a shared drive.

 

if I put 1.scr to local drive "c:\temp\1.scr", it can be run correctly. 

 

Thanks  for any idea or suggestion!

 

Below is my simple bat:

 

cd "C:\Program Files\Autodesk\AutoCAD 2016"  
c:  
cls  
accoreconsole.exe /i "H:\temp\follow river.dwg" /s "H:\temp\1.scr" /l en-US  

天涯海角的山姆


您认为此帖子是否有用?欢迎为此帖点赞。

您的问题是否已得到解答?请点击“接受解答”按钮。


EESignature



0 Likes
Accepted solutions (1)
4,129 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable
I run AcCoreConsole with network scripts all the time.
Open the drawing, then try to run the script from the network
. If it runs okay, my guess is there is something wrong with the BAT file.
0 Likes
Message 3 of 11

TiStars
Advisor
Advisor
Thank you,

the script runs very well from the network and local drive when I drag and drop it to opened drawing.

for the BAT file, I don't understand that:
[/i "H:\temp\follow river.dwg" ] ⇒this part runs well , but
[/s "H:\temp\1.scr"] ⇒this parts goes wrong.

天涯海角的山姆


您认为此帖子是否有用?欢迎为此帖点赞。

您的问题是否已得到解答?请点击“接受解答”按钮。


EESignature



0 Likes
Message 4 of 11

cadffm
Consultant
Consultant

Are you sure the name of script file is "1" ?

 

please create a simple BAT like this:

 

REM - START

"C:\Program Files\Autodesk\AutoCAD 2018\accoreconsole.exe" /i "H:\temp\follow river.dwg" /s "H:\temp\1.scr"
PAUSE

REM - END

 

a simple Script like this

;; Start

LOGFILEPATH
H:\temp
LOGFILEON
_CIRCLE
50,50
15

;; End

 

In the console-windows[C:\.], in the first 1-2 lines you have to check the Path+Filename+Extension information of your Scriptfile,

are the path+file+extension string well displayed in the console window, or not?

 

Where/What Error appears?

Current we dont know your BAT and SCR content, we dont know the console feedback and not the Logfile, so it is really hard to say.

Sebastian

0 Likes
Message 5 of 11

TiStars
Advisor
Advisor

Hi, 

 

I am sure the name of script file is "1" as I made it. It's a simple script to plot drawing to PDF which I use to learn script file. it runs very well when i drag and drop it to an opened drawing , also when put on a local drive C:\  and called by a bat file.

 

but I still tried your simple Bat & Script file and got same error.

 

I attached them and error log for your reference.

 

btw, script file did nothing as it has not been opened.

 

Thank you very much!

 

bat & scr file cannot be attached , so i paste here :

 

bat file(a bit change from your sample bat):

 

REM - START

"C:\Program Files\Autodesk\AutoCAD 2016\accoreconsole.exe" /i "H:\temp\Isolation Valve.dwg" /s "H:\temp\test.scr"
PAUSE

REM - END

 

scr file(same with your suggestion):

   

;; Start

LOGFILEPATH
H:\temp
LOGFILEON
_CIRCLE
50,50
15

;; End

 


天涯海角的山姆


您认为此帖子是否有用?欢迎为此帖点赞。

您的问题是否已得到解答?请点击“接受解答”按钮。


EESignature



0 Likes
Message 6 of 11

cadffm
Consultant
Consultant

hmm i am not sure, but one thing looks crazy:

 

Your BAT should open a file "H:\temp\Isolation Valve.dwg" but in your test.log the coreconsole open a file name "H:\temp\IsolationValve.dwg" (without the blank/space) ???

 

I think a can not help at this point, it isn't possible to test it 1:1 on my computer and now i am out.

-Test it with a blank/new file

-Try to fix the problem of these feedback:

"Unable to access Shared Pipe Catalog folder. Please verify configuration." ..

And for testing start *.bat file ever with doubleclick (not by 3.part programm)

 

Sorry Sebastian

Sebastian

0 Likes
Message 7 of 11

TiStars
Advisor
Advisor
Hi Sebastian,

Sorry I didn't provide all the information.
There are no blank/space in the "H:\temp\IsolationValve.dwg" is because I deleted them. For some reason, extra blank/spaces has been outputted to the log file , between every 2 letters.
I tried to fix it by remove all extra blank/spaces , but unfortunately, I remove some original spaces . that's why the filename became "IsolationValve.dwg" without blank/space.

I will refer to feedback you suggest, thank you very much

天涯海角的山姆


您认为此帖子是否有用?欢迎为此帖点赞。

您的问题是否已得到解答?请点击“接受解答”按钮。


EESignature



0 Likes
Message 8 of 11

TiStars
Advisor
Advisor
Accepted solution

This issue has been resolved after I added the path of scr to "Trusted Loactions".    H drive is a net drive as mentioned above.

 

 

 

Scr.PNG


天涯海角的山姆


您认为此帖子是否有用?欢迎为此帖点赞。

您的问题是否已得到解答?请点击“接受解答”按钮。


EESignature



0 Likes
Message 9 of 11

ams0803
Community Visitor
Community Visitor

hi I know this is an old issue you had. I am running to the same problem now. I added the drive to Trusted Locations and it is still not loading the src. Did you do anything else to fix this? Any help would be appreciated. 

0 Likes
Message 10 of 11

cadffm
Consultant
Consultant

Hi,

please, share screenshots of your trusted path setting

and the full path in win explorer

 

Sebastian

0 Likes
Message 11 of 11

TiStars
Advisor
Advisor
Hi,

I don't remember I did anything else, It should be working well once it works.
Would you mind sharing some more info like @cadffm suggests?

天涯海角的山姆


您认为此帖子是否有用?欢迎为此帖点赞。

您的问题是否已得到解答?请点击“接受解答”按钮。


EESignature



0 Likes