Hi, I have been using the (vlax-product-key) function to query the version of Land Desktop/Civil 3D software currently running, so as to determine which program to load using code like that below: (setq curversioncheck (vlax-product-key)) ; The following lines do a check of version and set the appropriate DB and VLX sub variables (if (vl-string-search "ACAD-300" curversioncheck) (setq subversion "C3D1" vlxversion "STRINGERC3D.VLX")) This has worked on numerous computers, but now we have found one with an installation of Civil 3D where it returns a message that the function isn't defined. Can someone confirm whether this function should be reliable, or should I be looking for another method of finding the currently running software? -- Laurie Comerford CADApps www.cadapps.com.au
Hi Jason, Thank you: It appears to be a case of (vl-load-com), as after running (vl-load-com) on the computer the (vlax-product-key) function worked. What I find mind boggling is why (vl-load-com) runs automatically on all our computers where we've tested, but for one, when all are running the standard Autodesk menus for Land Desktop/Civil 3D. I'll adjust our MNL file to run (vl-load-com) as it appears it can't do any "collateral damage" -- Laurie Comerford CADApps www.cadapps.com.au
You are welcome. I've started using a little bit of AutoCAD Mechanical and noticed that it does require a (vl-load-com) where other (newer) versions of vanilla AutoCAD do not. Guess it pays to be safe.