Jump to content

Scripting symbol changes


Doubledge

Recommended Posts

Greg,

As I said, that is Sudo Code. Try this, I think it will at least compile. You have to wrap any script that uses variables in a Procedure definition that ends with a Run() statement.

If you use variable you have to declare them in a Var block.

Have you read Robert Anderson's treatise on VS?

http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&Number=93218#Post93218

Make sure you try this on a sample or backup file in case there are bugs.

Procedure ModSymbols;

var  H1,H2  :Handle;

Begin
H1:=FSymDef;
While H1 <> Nil do
 Begin
   H2:=FInSymDef(H1);
   While H2 <> Nil do
     Begin
       {Code to do pen settings}
       H2:=NextObj(H2);
     End;
   H1:=NextObj(H1);
 End;
End;

Run(ModSymbols);

Link to comment
  • 6 years later...

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