吼叫声
所以我会注射/替换我的重复是?
- (defun c:mcdldlf ( / ss_dtl dtl_export dtl_export_open dtl_count dtl_obj dtl_hyp each hyp_txt )
- (if (and
- (setq ss_dtl
- (LM:ssget "\nSelect details in order for export or [Fence]: "
-
- (list "_:L"
-
- (append '((0 . "INSERT"))
-
- (
-
- (lambda ( / def lst )
- (while (setq def (tblnext "block" (null def)))
-
- (if (= 4 (logand 4 (cdr (assoc 70 def)))) (setq lst (vl-list* "," (cdr (assoc 2 def)) lst)))
- )
-
- (if lst (list '(-4 . "<NOT") (cons 2 (apply 'strcat (cdr lst))) '(-4 . "NOT>")))
- )
- )
- (if (= 1 (getvar 'cvport)) (list (cons 410 (getvar 'ctab))) '((410 . "Model")))
- )
- )
-
- )
-
- )
-
- (setq dtl_export (getfiled "Save Export File" (strcat "Export - "(menucmd "M=$(edtime,$(getvar,date),MO-DD-YYYY)")) "txt" 1))
- (setq dtl_export_open (open dtl_export "w"))
-
- )
- (progn
-
- (setq dtl_count 0)
- (repeat (sslength ss_dtl)
- (setq dtl_obj (vlax-ename->vla-object (ssname ss_dtl dtl_count)))
- (setq dtl_hyp (vlax-get-property dtl_obj 'Hyperlinks))
- (vlax-for each dtl_hyp
- (setq hyp_txt (strcat (vla-get-url each)))
- (write-line hyp_txt dtl_export_open)
-
- )
- (setq dtl_count (1+ dtl_count))
- )
- (close dtl_export_open)
- (princ (strcat "\nA hyperlink from " (itoa dtl_count) " Detail(s) has been exported to a .txt file."))
- )
- )
- (princ)
- )
- (defun LM:ssget ( msg arg / sel )
- (princ msg)
- (setvar 'nomutt 1)
- (setq sel (vl-catch-all-apply 'ssget arg))
- (setvar 'nomutt 0)
- (if (not (vl-catch-all-error-p sel)) sel)
- )
|