Not applicable
04-07-2014
02:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Everyone!
Need some help on a code. The code works to pick on specific blocks and attout data but when other dynamic blocks goes in the mix it grabs those data as well, coz if the dynamic blocks parameters changed ACAD names it as *UXXX. I know I need to get the effectivename and tried to insert it to the code but I cant make it work. Please help!!!!
Here's the code:
(defun c:out-att () (load "attout") (setq fna "C:\\folder1\\att.txt") (setq data nil bnames "blk01,blk02,blk03,`*U*" ss (ssget "_X" (list '(0 . "INSERT") '(66 . 1) (cons 2 bnames)) ) ) (repeat (setq i (sslength ss)) (setq e (vlax-ename->vla-object (ssname ss (setq i (1- i))))) (if (and (wcmatch (strcase (vla-get-effectivename e)) bnames) (bns_attout fna ss) )
Thanks in advance!!!!
Solved! Go to Solution.
Link copied