SYSVARMON and LSP

SYSVARMON and LSP

Anonymous
Not applicable
1,295 Views
2 Replies
Message 1 of 3

SYSVARMON and LSP

Anonymous
Not applicable

Is there a way of controlling via LISP the variables that are being monitored with SYSVARMONITOR?

 

2017-04-26_13-46-38.jpg

0 Likes
Accepted solutions (1)
1,296 Views
2 Replies
Replies (2)
Message 2 of 3

cadffm
Consultant
Consultant
Accepted solution

The Registry entries to SYSMON can be changed like all others (vl-registry-read / write)
However, it must be used in the non-current profile.

A) Change profile
B) Analyze, modify or simply read SYSMON data
C) set the current profile

HKEY_CURRENT_USER \ Software \ Autodesk \ AutoCAD \ R22.0 \ ACAD-1001: 407 \ Profiles \ << MyActiveProfile >> \ SysvarMonitor

 

       (defun GET_SYSMONLIST ( / PATH SYSVARMONLIST) ;; (setq ? (GET_SYSMONLIST))
	 (if (and
		  (setq PATH (strcat  "HKEY_CURRENT_USER\\"
				      (vlax-user-product-key)
				      "\\Profiles\\"
				      (getvar "CPROFILE") ; Returns data from the time the profile was loaded
		  )          )
		  (member "SYSVARMONITOR" (mapcar 'strcase (vl-registry-descendents PATH)))
		  (setq PATH (strcat PATH "\\SysvarMonitor"))
             )
	     (foreach SYSVAR (vl-registry-descendents PATH T)
		(setq SYSVARMONLIST (cons (cons(strcase SYSVAR)(vl-registry-read PATH SYSVAR)) SYSVARMONLIST))
	     )
         )
       )

Sebastian

Message 3 of 3

cadffm
Consultant
Consultant

I have to apologize, I had probably made a mistake in testing. Smiley Sad
The way to change the profile does not work, as can be read here: Click!

AutoCAD is also not interested in exporting the changed registry profile and then importing it.

When you start Acad, the sysvarmonitor data are read from the current profile,
And at the Acad end, the data is written to the current profile.

Exclusively with Lispfunktionen this is probably not to solve as it seems.

I hoped for hope, apology-my fault.

Sebastian

0 Likes