Message 1 of 4

Not applicable
07-22-2020
03:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear community,
I'm trying to adapt another LISP for my purpose. I would like to set the text offset of the selected dimensions (via TextGap) to two possible variants (5.5 and 1.5). Please let me know what is wrong here, because unfortunately it does not work.
(defun c:DimTextOffset ( / sel )
(if (ssget "_:L" '((0 . "DIMENSION")))
(progn
(vlax-for obj
(setq sel (vla-get-activeselectionset (vla-get-activedocument (vlax-get-acad-object))))
(if (= acunder (vla-get-TextGap obj))
(vla-put-TextGap obj 5.5)
(vla-put-TextGap obj 1.5)
)
)
(vla-delete sel)
)
)
(princ)
)
(vl-load-com) (princ)
Many thanks in advance
Solved! Go to Solution.