askrius Posted January 5, 2009 Posted January 5, 2009 Is there any way to retrieve the XCLIP bounds associated with a specific XREF (BlockRef, in this case)? Quote
VVA Posted January 5, 2009 Posted January 5, 2009 (defun bg:block-GetXclip ( vla-obj / result ) ;;Если блок подрезан, возвращает SPATIAL, иначе nil ;;If the block is clipped, returns SPATIAL filter, differently return nil ;; test ;; (bg:block-GetXclip (vlax-ename->vla-object(car(entsel "\nSelect clipped xref")))) (vl-catch-all-apply '(lambda ( ) (if (and (eq (vla-get-ObjectName vla-obj) "AcDbBlockReference") (eq :vlax-true (vla-get-HasExtensionDictionary vla-obj) ) ) (setq result (entget (vlax-vla-object->ename (vla-item (vla-item (vla-getExtensiondictionary vla-obj) "ACAD_FILTER" ) "SPATIAL" ) ) ) ) ) ) ) result ) Pay attention to group 10 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.