Author Topic: Object reactors & separate namespace  (Read 1803 times)

0 Members and 1 Guest are viewing this topic.

DW

  • Newt
  • Posts: 23
Object reactors & separate namespace
« on: August 10, 2006, 06:23:01 AM »
I'm new to reactors and I've learned a lot from others on this board -  thanks to all those who've gone before. I'm trying to create persistent reactors from a separate namespace vlx and while there doesn't seem to be a problem creating them in a new drawing, they are not reliably working on subsequent drawing access. 

I'm testing both Tim Willey's http://www.theswamp.org/index.php?topic=10248.msg132020#msg132020
and Lucas's http://www.theswamp.org/index.php?topic=9573.msg122888#msg122888
object reactor routines which behave in a similar way when compiled.  When a vlx file is created with the separate namespace option turned off, saved reactors in drawings work as they should, however in a separate namespace vlx, reactors are created ok, but when the drawing is saved and reopened only the last created reactor retains its persistence.

I've tried every combination of making symbols and functions accessible with vl-doc-set and vl-doc-export to no avail...  When I open a drawing in which reactors were created from a separate namespace vlx I get the message: Restoring Ldata-> this doesn't happen in a drawing where reactors are working fine. I think the way the reactor object is getting written to the drawing from the vlx namespace is the issue but I'm stumped about ways to fix this.

Any pointers will be much appreciated!

David

Patrick_35

  • Guest
Re: Object reactors & separate namespace
« Reply #1 on: August 10, 2006, 07:24:38 AM »
Hello
I don't think to use reactors persisting is best solutions bus as soon as the drawing goes elsewhere, the recipient has error messages.
I thus think that it is useful to be used for of the functions vlax-ldata-… to build its reactors.
I have well a lisp which does that, but it makes 42Ko and it's in French

http://carnet-de-cablage.chez-alice.fr/Lisp/Latt.zip

DW

  • Newt
  • Posts: 23
Re: Object reactors & separate namespace
« Reply #2 on: August 11, 2006, 07:46:40 PM »
Hi Patrick, thanks for posting your lisp, I will work through it to see if I can better understand how reactors can be saved using Ldata.  My main objective is to incorporate the reactor functions into a separate namespace vlx.  If this cant be done I guess I will just have to make a separate vlx file for the reactor functions and call them from my other routine. Persisting reactors are ok because the software will always be loaded and third parties wont need to modify the objects if they get the drawings,
Thanks,
David

Hello
I don't think to use reactors persisting is best solutions bus as soon as the drawing goes elsewhere, the recipient has error messages.
I thus think that it is useful to be used for of the functions vlax-ldata-… to build its reactors.
I have well a lisp which does that, but it makes 42Ko and it's in French

http://carnet-de-cablage.chez-alice.fr/Lisp/Latt.zip