Message 1 of 4
I have to setup many dynamic block properties, in many blocks (autoLISP)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have 6-8 dy props to setup in 100-1000 blocks. For 10-15 blocks takes a half minute.
I use a LeeMac function.
(defun LM:setdynprops ( blk lst / itm ) (foreach x (vlax-invoke blk 'getdynamicblockproperties) (if (setq itm (assoc (vla-get-propertyname x) lst)) (vla-put-value x (vlax-make-variant (cadr itm) (vlax-variant-type (vla-get-value x)))) ) ) )
It works very good in most programs, but now when I have many props/block it's slow down.
I need a solution, like
-extract in a list the etire structure ?!
-externly: I modify this where I need
-put etire structure in one move like (setq...
- Exist a specific LISP(VL VLA or else) function who can do that with entire struct
- Or other way to order myprops and use one secvential scan of block DyProps and change it
I have same problem with a table with ~10 colomns. When the table is grater than ~20lines, slow down, and down
For 50 lines work 1hour.
I use to write in table, for example (vla-settext myTable i j txt)
Thank you