Skip to main content
11-Garnet
Apr 22, 2026 10:29 AM UTC

ProMdl as drawing ot working

Hi, I tried this How to get Layer status of Drawing layers | Community but it is not working, if I pass the ProMdl as drawing, if you have solution can you please share the code snippet

 

 

        //ProMdl model = (ProMdl)solid;

         //ProMdl model = (ProMdl)drawing;    -→ fails here

        /* Visit layers */
        ProMdlLayerVisit(
            model,
            (ProLayerAction)LayerVisitAction,
            NULL,
            (ProAppData)&view
        );