https://forums.autodesk.com/t5/autocad-forum/block-name/td-p/4781187
Block name
HI I need some help regarding block’s Look at this special shape called *u54, I like to make a new block and replace it whit a new block Shape, but AutoCAD are not aloud med to give a name *U54. I can’t see this block in the block library Cane so
forums.autodesk.com
동적블럭이 변경되면 블럭 이름에 *가 붙은 다른 이름으로 변경된다.
이름에 *가 붙은 블럭은 깨지 않고는 수정할 수 없다.
ren 명령으로 이름도 못바꿔 ㅠㅠ
다음은 블럭의 이름을 강제로 수정하는 리습이다.
(defun C:RenABlock ()
(prompt "\nSelect anonymous block:")
(setq old_name (cdr (assoc 2 (entget (car (entsel))))))
(setq new_name (strcat "New block-" (substr old_name 2)))
(vla-put-Name
(vla-item
(vla-get-Blocks
(vla-get-ActiveDocument
(vlax-get-acad-object)
)
)
old_name)
new_name)
)
'autocad' 카테고리의 다른 글
레이어 조정; 짧은 직선 삭제 (0) | 2024.07.18 |
---|---|
not Equal (0) | 2024.07.17 |
Fix Scale Exported DWG from rvt (0) | 2024.06.27 |
Change Line space factor of MTexts in AA-TEXT-NOTE Layer (0) | 2024.06.21 |
선택한 개체의 레이어 기입 (0) | 2024.06.17 |