Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Grrr1337 on July 03, 2019, 10:39:19 AM
Title: vlr-owner-remove doesn't work
Post by: Grrr1337 on July 03, 2019, 10:39:19 AM
Hi guys, I rarely deal with object reactors, so today decided to do some practice by utilising the vlr-owner* functions.. and this got me confused From the docs : Removes an object from the list of owners of an object reactor
So if you firstly selected 3 entities, *TheReactor* should have after calling sub 2 owners, as first one is removed and then at the end global variable *owner* is added with (vlr-owner-add) function which works well... HTH., M.R.
Title: Re: vlr-owner-remove doesn't work
Post by: ribarm on July 05, 2019, 10:39:27 AM
I've updated sub function to be better... No need for callback function as argument... It's just like it should be : reactor and owner as arguments...
Regards, M.R.
Title: Re: vlr-owner-remove doesn't work
Post by: Grrr1337 on July 06, 2019, 09:18:35 PM
Thanks for confirming, Marco - Looks like there are few threads over here, regarding this vlr-owners-remove function, where I participated but haven't noticed that this function actually doesn't work. http://www.theswamp.org/index.php?topic=52995.msg578082#msg578082 http://www.theswamp.org/index.php?topic=52970.msg577851#msg577851 http://www.theswamp.org/index.php?topic=53048.msg578824#msg578824
So for my other test program, I had to substitute my previous code block..