TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: pingoo666 on April 28, 2020, 02:57:03 AM
-
Hello everyone,
I would like to execute a fonction when I select an object.
I think reactors can help, but the vlr-object-reactor function has no ":vlr-selected" parameter.
Any idea ?
Thanks by advance
-
maybe this helps:
https://www.theswamp.org/index.php?topic=48575.msg537236#msg537236
-
You should look for reactor that monitors sys variables changes... Then write callback function to monitor 'pickfirst variable - with changes reactor should fire...
-
You can use a Miscellaneous Reactor, with callback function triggered on the pickfirstmodified event - here is an existing example: Selection Counter (http://lee-mac.com/selectioncounter.html)
-
Concise + well written + useful = win.
-
Thanks :-)