Jump to content

Recommended Posts

Posted

Dear CADTutor members!

 

I am doing some project in school and now when all the analysis is done I have to import it to autoCAD. So I made 3 scripts and try to load them using SCRIPT command. Than I go and select my script and press "Open" . I get error "Drawing1.scr Cant find file" I am not sure what the problem is, I am sure file is there, it has its name and it should work.

 

Thank you for your time,

Aleks

Posted

Did you include the FULL path to the file?

Posted

Should always post your code so we can see whats wrong if you have a space in the file name this can cause the script to stop.

Posted

You included a path to a certain file in your script? Then you should pay attention that need to use quotes if the said path include spaces:

”C:\My Acad Drawing\12345 - Current Project\Drawing.DWG”

Posted

I am sure that I use the correct path to the file and also I tried to drag it on workspace. That didn't help, I still get the same error. I upload my scripts here maybe something wrong with them. Basicly they are just roadbed drawings in simple way.

Posted

tee2.scr

Ok here they are!

tee means road in estonian. 1 - 3 are indexes of 3 different scripts. They all must be on one CAD worksheet

 

P.S I tried AutoCAD 2011 and 2012 , both are students version!

tee3.scr

tee1.scr

Posted

Why the 2 blank lines at the start of each? That would be like pressing the ENTER key twice (i.e. redo last command & default its option). This might be why it's not finding the Drawing1.SCR file:

 

The 1st blank line starts the SCRIPT command (again).

The 2nd blank line Enters to accept the default script name ... i.e. .SCR. In your case a new drawing called Drawing1.DWG. Can't find file, so there's an error.

 

Also be careful with those other blank lines in your scripts. I can understand the one directly after the sequence of a continuous line drawn (i.e. stop the line command), but I'm not sure you're going to get the correct results with a splattering of blank lines in between text calls. The SCR file contains LITERALLY the keystrokes you'd have typed to create those entities, so a new line is an ENTER, a space is a SPACEBAR, etc.

Posted

Okay those empty spaces fixed my problem with that error, but now it seems the content is a mess. Now I will have to try and fix it.

 

P.S THANK YOU ALL FOR YOUR HELP!

Posted

You're welcome.

 

Another thing I've noticed: The content for text seems to assume that your current text style has a preset height, that might also cause some errors with a style with preset height=0.

 

BTW, from where are you getting these SCR files? I'm nearly sure no-one would type all that manually, is it something generated by a program?

Posted

Those come from Excel. I did first part of the work there , calculated all roadbed sizes etc and imported it to Notepad.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...