Print Page | Close Window

Change block - script

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DXF formats, Design Review, AutoCAD web, Drive, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=3689
Printed Date: 11.Jun.2026 at 21:54


Topic: Change block - script
Posted By: nkotiga
Subject: Change block - script
Date Posted: 27.Apr.2010 at 11:11
< ="Content-" content="text/; charset=utf-8">< name="ProgId" content="Word.">< name="Generator" content="Microsoft Word 12">< name="Originator" content="Microsoft Word 12">

Hello!

I need litle help about AutoCAD script. I use AutoCAD map 2009 and I try to make script to change color in block (block name „kc“) from red to ByLayer!!  The script need to do this with every block named „kc“ in sheet. I appreciate any help!



Replies:
Posted By: Vladimir Michl
Date Posted: 27.Apr.2010 at 11:35

You can try:

_SETBYLAYER
(ssget"_X" '((2 . "KC"))))

...


-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner



Print Page | Close Window