Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I tried all apis
ProMdlLayerVisit
ProMdlLayersCollect
I would expect more reports about this, if there was a general limitation of ProMdlLayerVisit() in drawings.
It should return all layers, hidden or not in all modes (where layers exist).
Of course the layer labeled "Hidden items" will not be returned, as it is used for the hide/Unhide mechanism.
Also make sure whether a layer of the expected name actually exists in the drawing (in the UI layers from models are also listed).