Reactors
After reading the README.txt for Bricscad V8, the VLR- functions should be working right? But this simple vlr-object-reactor doesn't work...Anybody tried reactors in V8?
; from AFRALISP.NET(vl-load-com);****************************************************************************(defun line-draw ()(setq acadDocument (vla-get-activedocument (vlax-get-acad-object)))(setq mspace (vla-get-modelspace acadDocument))(setq apt (getpoint "Specify First Point: "))(setq pt (getpoint "Specify next point: " apt))(setq myLine (vla-addline mspace (vlax-3d-point apt)(vlax-3d-point pt)))(setq lineReactor (vlr-object-reactor (list myLine)"Line Reactor" '((:vlr-modified . print-length))))(princ));defun;******************************************************************************(defun print-length (notifier-object reactor-object parameter-list) (setq a notifier-object) (setq b reactor-object)(cond ((vlax-property-available-p notifier-object "Length") (alert (strcat "The length is now " (rtos (vla-get-length notifier-object))))));cond(princ));defun;*******************************************************************************(princ);*******************************************************************************
Comments
-
Hello, Stephen,many thanks for your notification ...Yes, I know about these issues ... the LispEx engine provides all VLA/VLAX/VLR stuff, so it is fully available ...But the implementation in underlying CAD engine (Bricscad) is not yet complete, regarding all types of reactors.Especially, the ObjectReactor implementation is currently not usable.During next 1...2 weeks, I will add a complete test system for- VLR functions- VLAX functions- VLA functions(in this order) ... such complete tests will give us correct and complete informations, which features are missing and/or non-functional.Afterwards, we will implement and fix these problems.So I guess, it might take a short while until fully available + functional - but it is promised, it will come !!I hope these news are not too bad ?Wish you a nice daymany greetings, Torsten
0 -
Great!Is there a partial list of what is currently available in v8.2.6?... I've got the time to fool around now...Some reactors posted in a previous thread does work [below].
;;--- Lisp Reactor Callbacks (defun cb-started (arg1 arg2) (print "--- cb-started ---")(print arg1)(print arg2)(princ))(defun cb-ended (arg1 arg2) (print "--- cb-ended ---")(print arg1)(print arg2)(princ))(defun cb-cancelled (arg1 arg2) (print "--- cb-cancelled ---")(print arg1)(print arg2)(princ));;--- Lisp Reactor Definitions (setq lsp-start (vlr-lisp-reactor nil '((:vlr-lispWillStart . cb-started))))(setq lsp-end (vlr-lisp-reactor nil '((:vlr-lispEnded . cb-ended))))(setq lsp-cancel (vlr-lisp-reactor nil '((:vlr-lispCancelled . cb-cancelled))))
0 -
Hello, Stephen,as far as I overlook, even most vlr Lisp reactors should work :-)Especially, those vlr-lisp-... (Lisp events) reactors, but also vlr-command-... and vlr-document-... reactors seems to be fine.But in fact, that entire test suite, which will be created shortly, as mentioned above, will give us that informations, which reactors are fine, and which do not work properly :-)Those ActiveX helper functions VLAX-xxx seems to work all fine;also most VLA-GET-..., VLA-PUT-..., VLA-xxx functions are all available as well.Regarding VLA functions :there might also be some functions and properties not yet implemented and/or not correctly implemented.Here it seems difficult to create such entire test suite - as all combinations of target objects with available properties + methods will go into multiple thousands ...But a startin test suite is also in development ...I guess, within ~ 2 weeks we will have a first, correct list of VLR Lisp reactor problems - and as I hope that list will also be published and maintained.
0 -
thanks for the update!
0