Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm writing a lisp routine to change the cell height and cell text height of a table to specific values. I can't get the ActiveX version to work, and so far with traditional it changes the text height to the incorrect value, and I can't get the cell height to change. Here is what I have so far, please let me know what I'm missing:
Traditional:
(defun c:changecell ()
(setq a (car (entsel "\nSelect table to update: ")))
(setq b (entget a))
; Update the text height and cell height
(setq textheight (subst (cons 140 0.1875) (assoc 140 b) b))
(setq cellheight (subst (cons 141 0.359375) (assoc 141 textheight) cellheight))
(entmod cellheight)
(entupd a)
(prompt "\nDone")
(princ)
)
ActiveX:
(defun c:changecell2 ()
(setq d1 (car (entsel "\nSelect cells to update: ")))
(setq dp (entget d1))
; Update the text height and cell height
(vla-setcelltextheight dp 0.359375)
(prompt "\nDone")
(princ)
)
(vl-load-com)
Solved! Go to Solution.