Jump to content
Developer Wiki and Function Reference Links ×

Simple Class on off script


SLFY

Recommended Posts

I am missing something simple, I think. I am creating a simple On / Off script to work in my document context menu. I want to be able to turn my construction lines on and off with ease. The script, set up as a command,...

Procedure NonplotVis;

BEGIN

IF (GetCVis('non_plot')) > -1 THEN HideClass('non_plot') ELSE ShowClass('non_plot');

ReDrawAll;

END;

Run (NonplotVis);

It compiles fine, but it will not do anything once added to the workspace. I have tried assigning the GetCVis value to a declared variable and using the variable in the IF statement, etc. etc. But the script does nothing. I have much much more complicated 'tool' scripts working fine. Is there something I need to do different in the script for a 'command'?

Thanks in advance for any help.

Sean

VW Designer 2012

Windows Vista PC.

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