Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Execute lisp on selectin an object
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Execute lisp on selectin an object (Read 1912 times)
0 Members and 1 Guest are viewing this topic.
pingoo666
Mosquito
Posts: 13
Execute lisp on selectin an object
«
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
Logged
roy_043
Water Moccasin
Posts: 1895
BricsCAD 18
Re: Execute lisp on selectin an object
«
Reply #1 on:
April 28, 2020, 03:29:16 AM »
maybe this helps:
https://www.theswamp.org/index.php?topic=48575.msg537236#msg537236
Logged
ribarm
Gator
Posts: 3274
Marko Ribar, architect
WWW
Re: Execute lisp on selectin an object
«
Reply #2 on:
April 28, 2020, 03:30:40 AM »
You should look for reactor that monitors sys variables changes... Then write callback function to monitor 'pickfirst variable - with changes reactor should fire...
Logged
Marko Ribar, d.i.a.
(graduated engineer of architecture)
M.R. on Youtube
Lee Mac
Seagull
Posts: 12914
London, England
WWW
Re: Execute lisp on selectin an object
«
Reply #3 on:
April 28, 2020, 12:00:07 PM »
You can use a Miscellaneous Reactor, with callback function triggered on the
pickfirstmodified
event - here is an existing example:
Selection Counter
Logged
Lee Mac Programming
•
Twitter
•
Exchange App Store
MP
Seagull
Posts: 17750
Have thousands of dwgs to process? Contact me.
WWW
Re: Execute lisp on selectin an object
«
Reply #4 on:
April 28, 2020, 02:28:51 PM »
Concise + well written + useful = win.
Logged
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com
•
http://cadanalyst.slack.com
•
http://linkedin.com/in/cadanalyst
Lee Mac
Seagull
Posts: 12914
London, England
WWW
Re: Execute lisp on selectin an object
«
Reply #5 on:
April 28, 2020, 03:42:42 PM »
Thanks
Logged
Lee Mac Programming
•
Twitter
•
Exchange App Store
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Execute lisp on selectin an object