Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xclip boundaries

1 view
Skip to first unread message

Mark Dubbelaar

unread,
Jul 22, 2002, 4:26:20 AM7/22/02
to
hi

i was wondering how to determine if a drawing has an existing xclip boundary
via lisp??? i am writing a routine that clips all xrefs to the viewport and
if the xrefs have already been clipped, the program falls over....

thanks in advance

cheers
mark


Adam Wuellner

unread,
Jul 22, 2002, 11:26:59 AM7/22/02
to

"Mark Dubbelaar" <mark.du...@bigpond.com> wrote in message
news:33A2A4FF4067AD40...@in.WebX.maYIadrTaRb...

how about
(command "xclip" ss "delete")
before clipping?


Dan Allen

unread,
Jul 22, 2002, 11:28:02 AM7/22/02
to
Group code 360 is for xlipped blocks/xrefs.
Example code - requires two subroutines not included.

;;; One-step draw xclip boundary
(defun c:XCP ( / elst clay)
(princ "\nSelect xref to draw polyline boundary on layer Z-XCLIP: ")
(command "select" "si" (BCV_CMDACTIVE nil)) ;;; BCV_CMDACTIVE waits
until command is done
(if (assoc 360 (entget (ssname (ssget "P") 0))) ;check to see if xref has
boundary
(progn
(setq elst (entlast)) ;;; set flag for BCV_AFTER
(command "xclip" "P" "" "Polyline")
(command "-layer" "thaw" "z-xclip" "") ;thaw layer whether it exists
or not
(if (not (tblsearch "LAYER" "Z-XCLIP"))
(command "-layer" "make" "z-xclip" "color" "7" "" "") ;make layer if
it doesn't exist
)
(command "chprop" (BCV_AFTER elst) "" "layer" "z-xclip" "")
;;;BCV_AFTER returns entities created since flag was set
)
(princ "\nNo clip boundary found for Xref")
)
(princ)
)

"Mark Dubbelaar" <mark.du...@bigpond.com> wrote in message
news:33A2A4FF4067AD40...@in.WebX.maYIadrTaRb...

0 new messages