Demtor Posted May 6, 2012 Posted May 6, 2012 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 Quote
BIGAL Posted May 7, 2012 Posted May 7, 2012 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. Quote
MSasu Posted May 7, 2012 Posted May 7, 2012 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” Quote
Demtor Posted May 7, 2012 Author Posted May 7, 2012 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. Quote
Demtor Posted May 7, 2012 Author Posted May 7, 2012 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 Quote
irneb Posted May 7, 2012 Posted May 7, 2012 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. Quote
Demtor Posted May 7, 2012 Author Posted May 7, 2012 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! Quote
irneb Posted May 7, 2012 Posted May 7, 2012 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? Quote
Demtor Posted May 7, 2012 Author Posted May 7, 2012 Those come from Excel. I did first part of the work there , calculated all roadbed sizes etc and imported it to Notepad. Quote
Recommended Posts
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.