Jump to content
Developer Wiki and Function Reference Links ×

Limits on Script size??


ASA

Recommended Posts

Hi folks,

I'm trying to update an old command script of mine (that

applies a central repository of notes on a sheet by sheet

basis thoughout working drawings).

I need to add some new code for more filtering, etc. and it

appears I am hitting some hard-coded limit on script size.

It might be 32k chars.

This is in VW9.

Can anyone verify this? Is there a way around this?

I'd appreciate any assistance or insight.

Thanks,

PJS @ ASA

Link to comment

The safest way I've found is to create a plugin with one line:

{$INCLUDE \Your\script\file\pathname\here }

Also, set VW Preference 407 to TRUE, which you can toggle with a script or with menu Tools > Scripts > VS Compiler Mode. This tells the compiler to recompile your code each time it is run.

Use any text editor to make changes. You don't even have to close your editor window, just save after your changes and run again.

Reshaper is over 1MB in source code and has 55 $INCLUDES. No signs of hitting any limits yet.

This works equally well for menu commands, tools and plug-in objects.

When you are done developing, you can have the compiler copy all your code into your plugin for distribution, or you can leave it as a multi-file $INCLUDE'd collection. The choice is yours.

Raymond

Link to comment
  • 2 months later...

I get some time very weird compiling errors when I use

{$ include "files"}. Those errors don't have anythink to do with the included file.

So i usually look for some mistake or mistyping for a while and I never find it.

The only way to make them got away is to copy the exact same content of included file to the main file and the script compiles correctly.

I don't know if this has to do with some script length limitation, but it is driving my crazy...

Does anyone no what going on?

Is this problem only in the Belgian version??

Help, Please.....

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