SLFY Posted September 22, 2012 Share Posted September 22, 2012 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. Quote Link to comment
Kevin McAllister Posted September 22, 2012 Share Posted September 22, 2012 I was having a similar problem where a script was running fine from the scripts palette but did nothing as a menu command. The fix ended up being as simple as restarting Vectorworks. Kevin Quote Link to comment
SLFY Posted September 22, 2012 Author Share Posted September 22, 2012 HA! Customer service tech support script line #1 "Did you restart the device.." That worked! And I spent an hour beating my head against the proverbial wall. I guess I should be glad I stopped after an hour. Thanks Kevin. Sean Quote Link to comment
Recommended Posts
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.