[VBA V8i] Turning Off PDF Layers via Macros - Can it be done?

I tried recording a macro, but it only recorded a key-in to open the PDF Layers dialog box, but it did not record any dialog events. As my MDL skills have really atrophied, I was hoping someone may have the knowledge of some wrapper function that we could use. TIA  

Parents Reply
  • That is precisely what is occurring.

    Our Cartographic unit converted all map creation tasks to ESRI. But they found they needed a 3rd party solution to certain annotation/labeling tasks. Unfortunately, these do not translate back to DGN, so we can no longer get DGN maps to use for location maps with our plans.

    So we are having to use PDF's for these, but often, a project falls near an edge of the map, requiring two or even four PDF's to provide that base image. Getting the maps to honor the geographic coordinate system was proving elusive and is really a topic in another thread. (Summarizing its evolution - we determined that creating the PDF in the same view that they would ordinarily use, resulted in multiple coordinate systems in one PDF and the MicroStation Code the read GEO=-PDF's detect that issue, but does not offer the option of selecting the desired one, but simply reports the problem and attached the file at 0,0 with a scale of 1.)

    We therefore have had to request that they create a special PDF for us from a view that does not contain their map border graphics. The result however, still has some layers we would prefer to turn off. Processes like this would benefit from some automation so users do not have to repeat the process for every map, every time that they have to create a new map.

    Consider this our vote to add that functionality to the programming API in the future. 


    Charles (Chuck) Rheault
    CADD Manager

    MDOT State Highway Administration
    Maryland DOT - State Highway Administration User Communities Page

    • MicroStation user since IGDS, InRoads user since TDP.
    • AutoCAD, Land Desktop and Civil 3D, off and on since 1996
Children