本帖最后由 9701519 于 2024-11-4 18:34 编辑
如何不炸开块情况下修改改块内线形改为随块,线形比例改为100?
- (Defun c:tt (/ BLK)
- (and
- (setq blk (car (entsel "\n Pick Block <exit>:")))
- (setq blk (vlax-ename->vla-object blk))
- (vlax-property-available-p blk "effectivename")
- (= (vlax-for vlo
- (vla-item
- (vla-get-blocks
- (vla-get-activeDocument (vlax-get-acad-object))
- )
- (vla-get-effectivename blk)
- )
- (vla-put-Linetype vlo "ByBlock")
- (vla-put-LinetypeScale vlo 100.)
- (vla-put-Lineweight vlo acLnWtByBlock)
- (vla-put-Color vlo 0)
- (vla-put-Layer vlo "0")
- )
- (vla-update blk)
- )
- )
- )
|