TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: udaaf on November 24, 2015, 04:32:44 AM
-
I've try for write some code for update block properties table with Lisp. Properties can changed but geometry can't update.
Here's my code :
(vl-load-com)
;Proses Pemilihan Single Object (Pick)
(setq ss (ssget ":S" '((0 . "INSERT"))))
(setq ename (ssname ss 0))
(setq vevo (vlax-ename->vla-object ename))
(setq v (vla-getdynamicblockproperties vevo))
(setq vval (vlax-variant-value v))
(setq sal (vlax-safearray->list vval))
(setq BlockProp (nth 5 sal))
(vlax-put-property BlockProp 'value "A01")
(vla-update vevo)
Please correct the code, where's wrong ?
-
Can we change Block Table with Lisp ?
-
Search vla-getdynamicblockproperties:
One of the best: http://www.lee-mac.com/dynamicblockfunctions.html
Ma penso che Lee arriverą presto... :-) ^-^