RyanAtNelco Posted December 28, 2009 Posted December 28, 2009 Hey all, Does anyone know of a reactor that automatically reconciles all unreconciled layers? Thanks! Quote
JohnM Posted December 28, 2009 Posted December 28, 2009 I don’t understand could you give more detail Sounds like you want to purge all unused layers. Quote
RyanAtNelco Posted December 28, 2009 Author Posted December 28, 2009 When you insert an xref drawing, the layers from that drawing come in as "unreconciled layers" . You have to select them and reconcile them in order to print. I am looking for something that does this automatically as soon as a drawing is xref'ed in. Quote
RyanAtNelco Posted December 28, 2009 Author Posted December 28, 2009 Exactly what i was looking for! Thanks! Quote
Lee Mac Posted December 28, 2009 Posted December 28, 2009 No worries Just for kicks, if there was a VL method to reconcile a layer, this might be how you would go abou structuring a reactor: (defun c:XR_ON nil (vl-load-com) (if (not *xr_reac*) (progn (setq *xr_reac* (vlr-xref-reactor "Xref Reactor" (list (cons :vlr-endAttach 'Do_Recon)))) (princ "\n<< Reactor Activated >>")) (princ "\n** Reactor Already Running **")) (princ)) (defun Do_Recon (React Args) (princ "\n<< Layers Need to be Reconciled >>") (princ)) (defun c:XR_OFF nil (if (or (and *xr_reac* (vlr-added-p *xr_reac*)) (setq *xr_reac* (car (vl-remove-if-not (function (lambda (x) (eq "Xref Reactor" (vlr-data x)))) (mapcar (function cadr) (vlr-reactors :vlr-xref-reactor)))))) (progn (vlr-remove *xr_reac*) (setq *xr_reac* nil) (princ "\n<< Reactor Deactivated >>")) (princ "\n** Reactor Not Running **")) (princ)) Quote
RyanAtNelco Posted December 28, 2009 Author Posted December 28, 2009 Lee you are insanely good at this. Quote
Lee Mac Posted December 28, 2009 Posted December 28, 2009 Lee you are insanely good at this. Hehe thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.