Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi how can convert
This code is from @Jeff_M
From Lisp to C-Sharp
https://forums.autodesk.com/t5/civil-3d-customization/create-cogo-point-using-lisp/td-p/8960247
(setq C3D (strcat "HKEY_LOCAL_MACHINE\\"
(if vlax-user-product-key
(vlax-user-product-key)
(vlax-product-key)
)
)
C3D (vl-registry-read C3D "Release")
C3D (substr
C3D
1
(vl-string-search
"."
C3D
(+ (vl-string-search "." C3D) 1)
)
))
to get the number for example "13.4"
I came close to it, I did not know the origin of the solution
https://www.theswamp.org/index.php?topic=43276.0
// I got the "Software\Autodesk\AutoCAD\R19.0\ACAD-B001:409" value:
String _x = AcDb.HostApplicationServices.Current.MachineRegistryProductRootKey;
// I got the "Software\Autodesk\AutoCAD\R19.0\ACAD-B001:409" value:
String _y = AcDb.HostApplicationServices.Current.UserRegistryProductRootKey;
Solved! Go to Solution.