Jump to content

Recommended Posts

Posted

Is there any way to retrieve the XCLIP bounds associated with a specific XREF (BlockRef, in this case)?

Posted

(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

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