Page 1 of 1

scripts not working

Posted: 07 May 2009 03:22
by graham
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.

Re: scripts not working

Posted: 07 May 2009 10:27
by admin
Looks like I created a bug yesterday. Which script is it?

Re: scripts not working

Posted: 07 May 2009 14:04
by graham
extract from script that fails:

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\;
..........................
fail occurs on goto ...... resulting in error msg reported

Re: scripts not working

Posted: 07 May 2009 14:10
by admin
graham wrote:extract from script that fails:

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\;
..........................
fail occurs on goto ...... resulting in error msg reported
Quote your strings:

Code: Select all

	 set $path, $drive . ":\BU Sunderland\";
	 goto "C:\Documents and Settings\home\My Documents\AUTOCAD 2002\Sunderland 2002\";
etc. ...

Re: scripts not working

Posted: 08 May 2009 00:30
by graham
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.

Re: scripts not working

Posted: 08 May 2009 07:22
by admin
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.
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... :)

Re: scripts not working

Posted: 08 May 2009 23:55
by TheQwerty

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\;
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.

Re: scripts not working

Posted: 11 May 2009 22:13
by graham
querty said:
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.
Some further backup to my lousy script but how great XY is!

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

Re: scripts not working

Posted: 11 May 2009 22:35
by admin
Wow, this stuff looks bloody real!

Re: scripts not working

Posted: 11 May 2009 23:55
by serendipity
admin wrote:Wow, this stuff looks bloody real!
Would be cool if XY script could trigger an external app which controls this. :D

Re: scripts not working

Posted: 12 May 2009 00:29
by graham
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!