Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 383

[V8i VBA] Determining DWG Version of Active File

$
0
0

Can you use VBA to determine the DWG version of an opened file? I am able to use

    ActiveDesignFile.Format

to tell DGN from DWG.

But in a Civil 3D 2012 DWG, the File format is 2010, but the AEC Civil 3D Objects in the file are 2012.

When I tried

    ActiveDesignFile.FormatMajorVersion
    ActiveDesignFile.FormatMinorVersion

the response was 11 and 0. And in searching those properties, I learned thay are "wrapper" functions to MDL functions that are also not well documented which I guess makes them useless?

I suppose I could use brute force and read the Application.Caption and find the [ ] to determine the DWG version there, but I'd really like to get the AEC Object Version too. I am pretty sure that the RealDWG and/or Civil 3D Object Enablers are not exposed to VBA and may not even be exposed to MDL.





Viewing all articles
Browse latest Browse all 383

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>