Jump to content

Recommended Posts

Posted

Hey all,

 

Does anyone know of a reactor that automatically reconciles all unreconciled layers?

 

Thanks!

Posted

I don’t understand could you give more detail

Sounds like you want to purge all unused layers.

Posted

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.

Posted

Exactly what i was looking for!

 

Thanks!

Posted

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))

Posted

Lee you are insanely good at this.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...