Jump to content
Jord Visser

Got stuck on a compiling error in PIO

Recommended Posts

Hi all,

 

I'm made a rough PIO in vectorscript yesterday, this morning I added a procedure and it keeps getting stuck on a compiling error.

I rewrote the function several times now, checked all the IF-ELSE's, WHILE's and BEGIN's and I keep falling back to this error.

 

The MakeGrayObject Procedure is the one I added this morning

 

The error is:

Line #42: PROCEDURE LTSymbol;
{ Error: Extra text at end of script; missing BEGIN statement? }
{ Error: Identifier not declared. }

I attached the pascal .txt file and the .vso, both only tested in VW2018.

 

Can someone help me with this?

 

With kind regards,

Jord Visser

ltsymbol.txt

[LT] Advanced symbol.vso

Share this post


Link to post
24 minutes ago, JBenghiat said:

You've defined LTSymbol as your main procedure, so any other procedures need to be inside that scope, i.e. place sub-procedures after the main procedure's TYPE, CONST, and VAR sections.  Refer to the VS language guide for information on scope: http://developer.vectorworks.net/images/7/72/VectorScriptGuide.pdf

 

Thanks for the quick reply! works as a charm.

 

Makes a lot of sense now, quickly read trough the mentioned document a couple of times before.. I think it's time to read it thoroughly.

Share this post


Link to post

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.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...