yes..
ok, next question.
I am using this lisp:
--
; (setq all_blocks (mapcar (function (lambda (i) (strcase i)))(ai_table
"block" 0)))
; (setq keep_block (mapcar 'strcase (list "NA" "_archtick" )))
; (or thisdwg (setq thisdwg (vla-get-activedocument
(vlax-get-acad-object))))
; (foreach blockname all_blocks
; (if (not (vl-position blockname keep_block))
; (if (not (vl-catch-all-error-p (setq block1 (vl-catch-all-apply
'vla-item (list (vla-get-blocks thisdwg) blockname)))))
; (not (vl-catch-all-error-p (vl-catch-all-apply 'vla-delete (list
block1)))))))
--
to purge misc blocks .. so, how can I add these dimension blocks to the
"keep list"?
Mark Propst wrote:
> dimensions are a 'special' kind of block
> they are named as you discovered, *Dxxx
> they are not 'insertable' thus *Dxxx's don't show up in insert dialog
> they are in the block table if you ever need access to their component parts
> if you delete a dimension, the block definition is still there until you
> purge
>
> not sure how you're seeing this: "If I delete the dimensions these "blocks"
> are gone (not by purge, they just vanish)."
> how are you 'seeing' them vanish? by reading the block table?
>
> "C Witt" wrote in message
> news:3FC240DC.9030505@trkeng.com...
>
>>I have come across several unknown blocks in our drawings that are
>>linked the the dimensions..
>>
>>they are all called *D1, *D2, *D3, *D4, .. ECT. my question is.. what
>>are they? If I delete them, my dimensions vanish (though the node
>>points are still in the drawing and can be seen using Ctrl+A). Yet if I
>>try to use them "like a block".. ie insert.. they don't exist.
>>
>>Any insight would be appreciated.
>>
>>TIA.
>>
>
>
>