V7-90-0253 will not run scripts that work on previous versions!
Error msg Couldn't find location
C|Program Files\XYplorer\1
any ideas? reverted to previous backup of XY and script works.
scripts not working
-
admin
- Site Admin
- Posts: 66078
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: scripts not working
Looks like I created a bug yesterday. Which script is it?
FAQ | XY News RSS | XY X
-
graham
- Posts: 457
- Joined: 24 Aug 2007 22:08
- Location: Isle of Man
Re: scripts not working
extract from script that fails:
fail occurs on goto ...... resulting in error msg reported
Code: Select all
status "Select drive to backup to";
msg "BU sunderland data to drive",1;
input $drive, "Enter drive as C or D or...","C";
set $path, $drive:\BU Sunderland\;
goto C:\Documents and Settings\home\My Documents\AUTOCAD 2002\Sunderland 2002\;
backupto $path, C:\Documents and Settings\home\My Documents\autocad 2002\sunderland 2002\;
..........................-
admin
- Site Admin
- Posts: 66078
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: scripts not working
Quote your strings:graham wrote:extract from script that fails:
fail occurs on goto ...... resulting in error msg reportedCode: Select all
status "Select drive to backup to"; msg "BU sunderland data to drive",1; input $drive, "Enter drive as C or D or...","C"; set $path, $drive:\BU Sunderland\; goto C:\Documents and Settings\home\My Documents\AUTOCAD 2002\Sunderland 2002\; backupto $path, C:\Documents and Settings\home\My Documents\autocad 2002\sunderland 2002\; ..........................
Code: Select all
set $path, $drive . ":\BU Sunderland\";
goto "C:\Documents and Settings\home\My Documents\AUTOCAD 2002\Sunderland 2002\";
etc. ...
FAQ | XY News RSS | XY X
-
graham
- Posts: 457
- Joined: 24 Aug 2007 22:08
- Location: Isle of Man
Re: scripts not working
ok - but this is a very old script used frequently, worked every time which is why the quoting was not done - so presumably the quoting has now (just) become a forced requirement in parsing. Thanks for solution - easy to fix.
-
admin
- Site Admin
- Posts: 66078
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: scripts not working
I added a lot of stuff to scripting recently: Boolean operators, control structures... but I did not change the rules about quoting. Your scripts just had been lucky...graham wrote:ok - but this is a very old script used frequently, worked every time which is why the quoting was not done - so presumably the quoting has now (just) become a forced requirement in parsing. Thanks for solution - easy to fix.
FAQ | XY News RSS | XY X
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: scripts not working
Code: Select all
status "Select drive to backup to";
msg "BU sunderland data to drive",1;
input $drive, "Enter drive as C or D or...","C";
set $path, $drive:\BU Sunderland\;
goto C:\Documents and Settings\home\My Documents\AUTOCAD 2002\Sunderland 2002\;
backupto $path, C:\Documents and Settings\home\My Documents\autocad 2002\sunderland 2002\;-
graham
- Posts: 457
- Joined: 24 Aug 2007 22:08
- Location: Isle of Man
Re: scripts not working
querty said:
I should have paid attention because I knew about the quoting and it was just that all worked fine so why look for errors that arn't apparently there but were, if you see what I mean! Sunderland has been more of a problem to me than you might think and nothing to do with quoting - Sunderland is a Gear planing machine invented about 1905 and is still used today because it can produce a perfect involute form - not easy to do, believe me! I had just a sentence of words that described the theory and so from that I have invented and built my prototype version - the complexity and content is such that but for the daily ease of scripting in XY I could sleep well knowing backups were made - right now I am in beta testing - it should work, it is totally different in design to the original Sunderland but conforms to the theory - thanks for scripting, I shall pay attention from now on!!!!
http://www.homepages.mcb.net/howe/workshopprojects3.htm
Some further backup to my lousy script but how great XY is!I bet it's the "Sunderland" and the "Documents and Settings" which weren't an issue before the addition of the Boolean ops. Though the "Sunderland" was probably only a problem for one beta.
I should have paid attention because I knew about the quoting and it was just that all worked fine so why look for errors that arn't apparently there but were, if you see what I mean! Sunderland has been more of a problem to me than you might think and nothing to do with quoting - Sunderland is a Gear planing machine invented about 1905 and is still used today because it can produce a perfect involute form - not easy to do, believe me! I had just a sentence of words that described the theory and so from that I have invented and built my prototype version - the complexity and content is such that but for the daily ease of scripting in XY I could sleep well knowing backups were made - right now I am in beta testing - it should work, it is totally different in design to the original Sunderland but conforms to the theory - thanks for scripting, I shall pay attention from now on!!!!
http://www.homepages.mcb.net/howe/workshopprojects3.htm
-
admin
- Site Admin
- Posts: 66078
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: scripts not working
Would be cool if XY script could trigger an external app which controls this.admin wrote:Wow, this stuff looks bloody real!
-
graham
- Posts: 457
- Joined: 24 Aug 2007 22:08
- Location: Isle of Man
Re: scripts not working
Some light relief while DP is ready to pounce!
This is the real thing!
http://www.homepages.mcb.net/howe/NewSunderland.htm
One of the things that is interesting in design techniques terms is starting with a 3d model on the computer and from that using a program to convert the model into 2d sets of drawings - I had to learn lisp to create a program to speed this up - so as a parallel, XY s model for DP defined, run a program and Don is redundant, no coding ever needed again. In modern engineering terms, the 2d drawing stage is also not needed and the code is now piped to whatever machine to manufacture impossible designs from the code - I really should have stuck with engineering but at the time programming was so damn challenging and you didn't even get your hands dirty!
This is the real thing!
http://www.homepages.mcb.net/howe/NewSunderland.htm
One of the things that is interesting in design techniques terms is starting with a 3d model on the computer and from that using a program to convert the model into 2d sets of drawings - I had to learn lisp to create a program to speed this up - so as a parallel, XY s model for DP defined, run a program and Don is redundant, no coding ever needed again. In modern engineering terms, the 2d drawing stage is also not needed and the code is now piped to whatever machine to manufacture impossible designs from the code - I really should have stuck with engineering but at the time programming was so damn challenging and you didn't even get your hands dirty!
XYplorer Beta Club