- (defun c:test4 (/ en i lenb ss)
- (setvar "cmdecho" 0)
- (setq ss (ssget "X" '((0 . "*")(-4 . "<or")
- (6 . "DASHED")(6 . "DASHED2")(6 . "DASHEDX2")
- (6 . "HIDDEN")(6 . "HIDDEN2")(6 . "HIDDENX2")
- (-4 . "or>"))))
- (progn
- (setq i 0 )
- (repeat (sslength ss)
- (setq en (ssname ss i))
- (setq lenb (lengthOfObject en))
- (if (> lenb 5)
- (command "change" en "" "prop" "LT" "DASHED" "ltScale" "1" "")
- (command "change" en "" "prop" "LT" "DASHED" "ltScale" "0.3" "")
- )
- (setq i (1+ i))
- ))
- (princ))
- (defun lengthOfObject (curve / len)
- (progn
- (if (vl-catch-all-error-p
- (setq len (vl-catch-all-apply
- 'vlax-curve-getDistAtParam
- (list curve
- (vl-catch-all-apply
- 'vlax-curve-getEndParam
- (list curve)
- ))))) nil len)))
|