JEA Posted January 21, 2008 Share Posted January 21, 2008 I am trying to use the custom tool/ attribute function under "tools" to create a script that will give me a dashed double line with a 4" separation on a given layer in a given class. I've tried multiple times to set the tool and attibutes and run the function to create the script. Every time I run the script VW crashes. Here is the script: Procedure CustTool; VAR Name:STRING; Result:BOOLEAN; BEGIN PushAttrs; Result := DeleteAllDLComponents; SetDLSeparation(4"); SetDLControlOffset(0"); SetDLOptions(0); NameClass('Sleeve'); Layer('HS'); CallTool(-216); PopAttrs; END; Run(CustTool); Here is the error message: the instruction at "0x66869b97" referenced memory at "0x7ffdefff". The memory could not be read. Any help is appreciated. Thanks in advance James Arch, ALSA Windows, VW 12.5.1(64620) Quote Link to comment
Pat Stanford Posted January 21, 2008 Share Posted January 21, 2008 JEA, I just copied and pasted your script into VW12.5.3 on a Mac and it ran fine, but it did not give me dashed lines. Something you might want to check is do you use the same Procedure Name (CustTool) for multiple scripts? If so, perhaps VW is getting confused and running different code. I have not been able to pin this down, but I think I have seen this problem before. Perhaps someone else will be able to test on a windows machine before you do a reinstall of VW. Pat Quote Link to comment
JEA Posted January 21, 2008 Author Share Posted January 21, 2008 Thanks Pat. I checked and have not used the same name twice. A check on a windows machine woyuld be great if anyone has a moment. Thanks again. James Quote Link to comment
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.