OK, did some more sleuthing using Lee Mac's code Modified thusly:
Code:
; Layer Director by Lee McDonnell (MODIFIED)
(vl-load-com)
(if (not cmdReactor)
(setq cmdReactor
(vlr-command-reactor
nil
'((:vlr-commandWillstart . startCommand)
(:vlr-commandEnded . endcommand)
(:vlr-commandCancelled . cancelCommand)
)
) ; end command reactor
) ; end setq
) ; end if
(defun startCommand (calling-reactor startcommandInfo / thecommandstart)
(setq oldlay (getvar "clayer"))
(setq thecommandstart (car startcommandInfo))
(if (= thecommandstart "PLACEVIEW")
(setvar "clayer" "L-PS-VPORT")
) ;_ end if
(princ)
) ; end startcommand
(defun endCommand (calling-reactor endcommandInfo / thecommandend)
(setq thecommandend (car endcommandInfo))
(if (= thecommandend "PLACEVIEW")
(alert "PLACEVIEW DONE!")
) ;_ end if
(princ)
) ; end endCommand
(defun cancelCommand (calling-reactor cancelcommandInfo / thecommandcancel)
(setq thecommandcancel (car cancelcommandInfo))
(if (= thecommandcancel "INSERT")
(setvar "clayer" oldlay)
) ;_ end if
(princ)
) ; end cancelCommand
This creates a dialog box when the PLACEVIEW command completes. As you can see, the PLACEVIEW command completes prior to the view label being placed.
PV1.png
After clicking 'OK' the view label is placed.
PV2.png
So I guess what I need to know is what command is issued after PLACEVIEW that inserts the viewlabel, and if that command is VIEWLABLE, why is the reactor not grabbing it like it does when placing the callout view directly form the SSM?
Thanks as always for your help folks