Ii I know the class name & UID of an item on a indd file, how can i get it's visibility status?
I tried to do it like this as shown in a nexample,
InterfacePtr<ISpreadLayer> spreadLayer(::GetDataBase(unknown), hierarchy -> GetLayerUID(), UseDefaultIID());
if(spreadLayer != nil)
bool visibleFlag = spreadLayer->IsVisible();
but above code gives 'true' even for invisible items.
please let me know what is the wrong?
Thanks