2020-08-2007:17 PM - last edited on 2022-09-2610:47 PM by Daniel Kassai
2020-08-2007:17 PM
Hi fellow GDLers, I need to script an object that is only able to perform SEO operations only if it is in a visible layer. I know how to get the SEO feedback from the object. I just need to get the "visibility" feedback. Is there any global or request that tells the object that it is visible or in a visible layer? Thanks in advance,
There is a GLOB_LAYER parameter which returns the name of the Layer. Though I have never used it
Creator of Cadswift's parametric GDL libraries
Creator of Infinite Openings and Component Catalogues
Push the envelope & watch it bend
website: https://cadswift.com.au/
YouTube: https://www.youtube.com/user/CADSwift/playlists
Thanks Kristian. I was aware of the GLOB_LAYER parameter. I am looking for a a way to check if the layer is on or off in the current view.
To be more clear: I am trying to create an object with a specific geometry that can be SEOed regularly, but I only want the SEO operation to be visible if the object is in a visible layer. If the layer is off, the SEO operation is not visible.
GDL can't read on/off Status of Layers. Try MVO in combination with GLOB_SEO_TOOL_MODE for your Object instead.
So you can have different representations i.e. for section and rendering.
Hi Dominic,
I had a hunch that this would be the answer... Just checking for some new global parameter since my GDL good old days.
Yes. The custom MVO and GLOB_SEO_TOOL_MODE can do the trick. I will give it a try.
Thanks a lot!
Cheers,