Community
Solved! Go to Solution.
Solved by Lee_Mac. Go to Solution.
Try the following function:
;; Block Name from Table Cell - Lee Mac ;; obj - [vla] Table Object ;; row/col - [int] Zero-based row & column indexes (defun LM:blocknamefromtablecell ( obj row col / 64p doc ) (setq 64p (wcmatch (getenv "PROCESSOR_ARCHITECTURE") "*64*") doc (vla-get-activedocument (vlax-get-acad-object)) ) (eval (list 'defun 'LM:blocknamefromtablecell '( obj row col ) (list 'if '(= acblockcell (vla-getcelltype obj row col)) (list 'vla-get-name (list (if (and 64p (vlax-method-applicable-p doc 'objectidtoobject32)) 'vla-objectidtoobject32 'vla-objectidtoobject ) doc (list (if (and 64p (vlax-method-applicable-p obj 'getblocktablerecordid32)) 'vla-getblocktablerecordid32 'vla-getblocktablerecordid ) obj row col ) ) ) ) ) ) (LM:blocknamefromtablecell obj row col) )
Call the above with the VLA Table Object and zero-based row & column index.