Vlisp - problem

Recommended Posts


W dawnych czasach używałe takiego lispa:


(defun change_text_value (obj)

(foreach ATT (vlax-safearray->list

(vlax-variant-value ;;;;;;?????????????????

(vla-getattributes obj)



(if (and (/= (vla-get-TagString att) "DESC")

(/= (vla-get-TagString att) "ARK_NR")


(vla-put-textstring att " ")



(vla-update obj)


(defun c:blank (/ sset num len)

(setq sset (ssget "x" '((2 . "BordUn2")))

;; (setq sset (ssget '((0 . "INSERT") (66 . 1)))

num 0

len (sslength sset)


(vla-startundomark (vla-get-activedocument (vlax-get-acad-object)))

(if (/= len 0)

(repeat len


(vlax-ename->vla-object (ssname sset num))


(setq num (1+ num))


(princ "\nNo entities with attributes were selected. ")



Procedura ta czyściła wszystkie atrybuty w bloku BordUn2, za wyjątkiem 2-ch ("DESC" i "ARK_NR").

Próbowałem wiersz, po wierszu przetestować ten program. Wydaje się, że zawiesza się na

(vlax-variant-value ...).

Czy może uda się to jakoś to "reanimować?



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.