Answered
can i create layers (OCG's) and place content in them?
due to different limitations in the PDFMaker for AutoCAD exporting to PDF is a crippled option. I'd rather create several PDF's from the same layout with different layer-settings. These pdf's I would like to merge, not one after an other, but all in the same page: Layers would be the answer. Once made I could then juggle around with the visibility. I could use createWatermarkfromFile("layers1.pdf"), but that would be just one.
DL-ed "Layers.js", but is it strictly 3D?
http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/create_use_layers/
There are also a couple of 3rd party tools for creating OCGs from existing page content. "Stratify" from www.artspdf.com and "PDFLayerMaker" from www.callassoftware.com. Both products are a bit elusive to find on the web and might have been discontinued or merged into other tools. PDFLayerMaker is still listed on the Tools4Media website, but not on the Callas site.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script