Hi all, i'm writing a routine (with a reactor) that will fire at plot command. Some users just want to be warned if there are Xrefs on DEFPOINTS, and if any other layers are configured as "not plottable"....quite easy though i'm surprised by an issue i didn't see comin'.... How can you know on which layer is an Xref ?
See below the part of the code i try to get it... i tried everything i had in mind, see my last trial, retrieving the handle in order to use ASSOC 8....
Don't try this it does not work, since there is no ASSOC 8 in an XREF record....doesn't seem to have a layer property at all
(at least everywhere i searched)
Thanks..
(setq blocks (vla-get-blocks (vla-get-activedocument (vlax-get-Acad-Object))))
(setq rList '())
(vlax-for item blocks
(if
(= (vlax-get-property item 'isXref) :vlax-true)
(setq rList (append rList
(list
(list (vlax-get-property item 'name)
(vlax-get-property item 'Handle)
)
)
)
);setq rlist
);if
);vlax-for
(if rlist
(progn
(foreach ref rlist
(if (= "defpoints" (assoc 8 (entget (handent (cadr ref)))))
(setq defref (append defref ref))
)
);foreach
)
);if