Alternatively, you could hardcode the MAC address - this is hardware-specific and will not change.
(defun get_macaddress (/ query retval)
;;Source : http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/seial-number-etc/td-p/2674574
(vl-catch-all-apply
'(lambda ()
(vlax-for item (setq query (vlax-invoke
(vlax-invoke (vlax-create-object "WbemScripting.SWbemLocator") 'ConnectServer "." "root\\cimv2")
'ExecQuery
(strcat "select * " "from Win32_NetworkAdapterConfiguration " "where IPEnabled = True")
)
)
(setq retval (vlax-get item 'MACAddress))
)
)
)
(if query
(vlax-release-object query)
)
retval
)
@HasanCAD:This is a lisp protection only. in most of engineering offices the user want to get a copy of a good lisp. So we trying to be againest that illigal copy.
If you are talking about custom software for one particular client this solution may work. But for software licensing in general I would choose a different option.
Your computer has a specific MAC address which you can get from following function :-As an aside: