Hi all,
I need to know how i can automate the process of selecting the correct objectlibrary in VBA. I'm using AutoCAD 2013 but the version differs from coworker to coworker, including LT versions (only a warning in that case). Can anyone point me in the right direction or provide some code?
Kind regards
Wouter
LT versions are irrelevant: it doesn't support any automation, including VBA.
I don't think you can easily do it that way with VBA; late-binding doesn't work with everything and makes development more difficult. Standardizing the releases you use is very important for widespread use of automation and efficient use of time. It becomes even more important when you start adding verticals and third-pary applications into the mix. While you work towards that, create version-specific releases and use version-specific search paths to find the correct file.
I've tried late binding, but i had to stop because it started to look like a complete rewrite. And at this moment i am rounding up to release so there is little time left. If there are no ways to select an object library according to the acad version, i guess i should be making multiple versions. Thanks for the reply. Might anyone still have a solution though, i am still open for suggestions.