Is there a way to check whether Sheet is visible or not?

This section is for general discussion about Gadgets
Post Reply
User avatar
TomWS
Vectric Wizard
Posts: 350
Joined: Sat Mar 06, 2021 11:06 pm
Model of CNC Machine: OB Lead 1010, Mach3; OB C-Beam 1060 grbl

Is there a way to check whether Sheet is visible or not?

Post by TomWS »

I'm starting to investigate modifying a gadget so that it only acts on Sheets that have their visibility turned on in the sheets tab.

I can see that CadObject has a isVisible method, but I don't think a Sheet is a CadObject. Is there a way to test the visibility of a Sheet?

User avatar
adze_cnc
Vectric Wizard
Posts: 4325
Joined: Sat Jul 27, 2013 10:08 pm
Model of CNC Machine: AXYZ 4008
Location: Vancouver, BC, Canada

Re: Is there a way to check whether Sheet is visible or not?

Post by adze_cnc »

Page 56 of "Vectric Lua Interface Documentation v11.pdf" is the page for "CadSheetManager" and there is nothing there for checking visibility,

User avatar
TomWS
Vectric Wizard
Posts: 350
Joined: Sat Mar 06, 2021 11:06 pm
Model of CNC Machine: OB Lead 1010, Mach3; OB C-Beam 1060 grbl

Re: Is there a way to check whether Sheet is visible or not?

Post by TomWS »

adze_cnc wrote:
Fri Feb 04, 2022 5:32 pm
...there is nothing there for checking visibility,
Yeah, I found that, but, as hope reigns eternal, I was hoping the documentation was lacking, rather than the capability. :(
I'm trying to understand how the Sheets Tab controls visibility, but it's not an attribute that can be checked...

Post Reply