Scrip file not loading into AutoCAD

Scrip file not loading into AutoCAD

sherardp
Contributor Contributor
3,112 Views
13 Replies
Message 1 of 14

Scrip file not loading into AutoCAD

sherardp
Contributor
Contributor

Using the "script" command to load a xxx.eq.scr file (see below) it does not load the function into AutoCAD and no plot is generated. I've made sure all blank spaces have been removed. Nothing has worked.

Here is my script file:

Pline
0.0,-0.000115129

0.01,-0.046051702
0.02,-0.07824046
0.03,-0.105196737
0.04,-0.128755033
0.05,-0.149786614
0.06,-0.168804643
0.07,-0.186148203
0.08,-0.202058292
0.09,-0.216715105
0.1,-0.230258509

 

 

0 Likes
Accepted solutions (1)
3,113 Views
13 Replies
Replies (13)
Message 2 of 14

paullimapa
Mentor
Mentor

I assume when you state that no plot is generated you mean no Pline is generated?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 14

sherardp
Contributor
Contributor
Yes, the .eq.scr file is supposed to draw a pline with the x,y coordinates shown in the file. It is not doing that when I use the "script" command in AutoCAD. Instead, it is asking for another point for input as if it never sees the .eq.scr file. Thanks.
0 Likes
Message 4 of 14

paullimapa
Mentor
Mentor

Worked for me but I did have to make 2 adjustments after copy+pasting from your posting (attached zip):

1. There was an extra empty line after the first set of coordinates which I removed:

paullimapa_1-1709966070428.png

2. At the end of file I added extra Return & Zoom Extents 

paullimapa_0-1709965959652.png

 

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 5 of 14

sherardp
Contributor
Contributor

I'm not sure what you mean by "Return & Zoom Extents". Did you add "Z Zoom" on the last line?

0 Likes
Message 6 of 14

paullimapa
Mentor
Mentor

I actually typed Z which runs the Zoom command. But if you open the zip file that contains the modified script file I attached in the previous post you’ll see what I added at the end 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 7 of 14

sherardp
Contributor
Contributor

Sorry, I don't see a zip file attached.

But:

I checked that my script has no blank lines and added Z on the last line and I keep geting the error:

command 0.0,-0.000115129 unknown command "0.0,-0.000115129". These are the first numbers in the eq.scr file.

 

 

 

 

 

 

0 Likes
Message 8 of 14

paullimapa
Mentor
Mentor

I attached it this time...look back at my original reply post. That modified script worked for me.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 9 of 14

sherardp
Contributor
Contributor

Sorry, I still do not see an attachment. I've attached a screen shot of what I see in your reply.

0 Likes
Message 10 of 14

Pointdump
Consultant
Consultant

Hi Paul,
This is what happens when I try to download your file:
Dave

 

VirusDetected_1.png

 

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 11 of 14

paullimapa
Mentor
Mentor

That’s because your antivirus program detects a .scr file and thinks that is a virus since it contains a series of commands. But this file type is also used by AutoCAD to run a series of commands as well. See if you can temporarily disable that to allow the download 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 12 of 14

paullimapa
Mentor
Mentor

I renamed the file extension to .txt and attached it here.

After you download rename it back to .scr


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 13 of 14

Pointdump
Consultant
Consultant

Hi Paul,

Works nicely. Thanks.

Dave

 

scr_works_1.png

 

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 14 of 14

paullimapa
Mentor
Mentor
Accepted solution

Another thing I changed in the script is by preceding the Pline command with _.  The _ (underscore) invokes the native language command which is the English command and the . (period) invokes the original command incase it was undefined. So these are the main differences between your original script file vs my modified version. Glad that now it’s working out for you….cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos