IAcadPViewport2 code for my autocad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey there,
I've copied some code from the internet https://forums.augi.com/showthread.php?79882-Switching-layers-on-off-in-viewports-using-VBA it's the code in post #6, was posted there in 2008.
In this post there's the term 'IAcadPViewport2' which my computer doesn't recognize. I work with Autocad 2018, got reference to "Microsoft ActiveX Data Objects 6.1 Library'.
I can change the 'IAcadPViewport2' to 'IAcadPViewport1' or 'AcadPViewport', both are recognized, but then the code isn't working. So guess the problem is in the exact viewport type?
Next to the question on how to solve, I'd like to know more about where I can find more information about these different types of viewport, the related ActiveX libraries, and that kind of stuff, cause I can't really find any clear information about what is what on the internet somewhere. Anyone got any good links?
Thanks!