Jump to content
Developer Wiki and Function Reference Links ×

Include file


Recommended Posts

I use the $INCLUDE command on many of my scripts, and it works just fine.  I'm involved with changing this current script from a point object to a linear object and in doing so I'm simple copying and pasting the code from object to another, but in doing that I've generated a script error on my $INCLUDE line and I'm not sure why.  I've tried rewriting it, closing it/reopening it, closing/opening VW, but nothing seems to be working.  It works fine in the original script, but not this one.  Thoughts?

 

Dave

Screenshot 2024-03-20 at 2.14.51 PM.png

Link to comment

You nailed it!!!

 

All my scripts and include files are in a folder within the Plug-ins folder ( Plug-ins/Myscripts/... ), but when I created a new linear object, it (by default) places the new script in the Plug-ins folder which is why it couldn't find the include file.  So I placed the new linear object script inside my 'Myscripts' folder and my script compiled correctly.  I think, in my head, I thought it would look within everything within the Plug-ins folder for the include file, but apparently not.  

 

Big thank you once again.

Dave

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