Hey! thanks for the response!
This is what I'm currently using to unlock all the table cells in my drawing-- I figured it would be a quick easy fix to use the same script to lock all my cells but I'm having some difficulty.
(defun AH:lockcell ( / x y)
(setvar 'ctab "Model")
(setq y 0)
(setq ss (ssget "X" (list (cons 0 "ACAD_TABLE"))))
(repeat (setq X (sslength ss))
(setq obj (vlax-ename->vla-object(ssname ss (setq x (- x 1)))))
(setq nRows (- (vla-get-rows obj) 1))
(setq nCols (- (vla-get-Columns obj) 1))
(setq row 0)
(setq cell 0)
(vla-put-RegenerateTableSuppressed obj :vlax-true)
(while (<= row nRows)
(while (<= cell nCols)
(vla-setcellstate obj row Cell 0)
(setq cell (1+ cell))
(princ (strcat "\nRow : " (itoa row) " , cell " (itoa cell)))
);while
(setq row (1+ row))
(setq cell 0)
)
(vla-put-RegenerateTableSuppressed obj :vlax-false)
)(princ)
)
(AH:unlockcell)
I have tried changing this value to a 1, 2, and 4 but it doesn't seem to work. Any ideas? I feel like it should be as simple as changing a single argument in a single command.
Pls help this will literally perfect my script