Replies: 5 comments 2 replies
-
For what purpose? The reason I ask is because is the clones do versioning differently than AutoCAD Db.HostApplicationServices().releaseMajorMinorString() AutoCAD 2024 reports R24.3 I have code in another project that will pick up the exact version from the .exe if that would be more helpful, assuming they set it |
Beta Was this translation helpful? Give feedback.
-
oops pyrx version, I can add it to a function Command: PYRXVER |
Beta Was this translation helpful? Give feedback.
-
Added Ap.Application.pyrxVersion() |
Beta Was this translation helpful? Give feedback.
-
Side note, I always update published version numbers in the DLL, so if by chance you need to check the version outside of cad, you can use something like # https://stackoverflow.com/questions/580924/how-to-access-a-files-properties-on-windows
from win32api import GetFileVersionInfo, LOWORD, HIWORD
def get_version_number(filename):
try:
info = GetFileVersionInfo(filename, "\\")
ms = info["FileVersionMS"]
ls = info["FileVersionLS"]
return HIWORD(ms), LOWORD(ms), HIWORD(ls), LOWORD(ls)
except:
return 0, 0, 0, 0 returns
|
Beta Was this translation helpful? Give feedback.
-
2ea2650 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I get the main module and loader version from pyrx?
Ap.Application.hostAPI()
and.hostAPIVER()
do not return the minor version.Beta Was this translation helpful? Give feedback.
All reactions