Jump to content

Custom tool/ Attribute


JEA

Recommended Posts

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)

Link to comment

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

Link to comment

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