20
63
43
初露锋芒
使用道具 举报
106
1万
101
顶梁支柱
(defun c:test ()(setq a (ssget "x"))(command "CHPROP" a ....) ; you need to add what it is you want to change eg LA for layer)
7
80
73
初来乍到
(defun C:test(/ cntr eset en enlist pt clr lay) ;Main Application ;Turn the command echo off (setvar "cmdecho" 0) ;Prompt the user for information (setq clr(acad_colordlg 1 nil)) (setq lay(getstring "\n Layer: ")) ; Get a selection set (setq eset (ssget (list (cons -4 "<OR") (cons 0 "ARC") (cons 0 "ELLIPSE") (cons 0 "INSERT") (cons 0 "LINE") (cons 0 "LWPOLYLINE") (cons 0 "MLINE") (cons 0 "MTEXT") (cons 0 "POLYLINE") (cons 0 "TEXT") (cons 0 "XLINE") (cons -4 "OR>") ) ) ) (if (and eset (> (sslength eset) 0)) (progn ;CHANGE COLOR FOR ALL ENTITIES ;Change the color (command "change" eset "" "Properties" "Color" clr "") ; ;CHANGE LAYER FOR ALL ENTITIES ;Change the layer (command "change" eset "" "Properties" "LAyer" lay "") ) ) (setvar "cmdecho" 1) (princ))(princ "\n Type test to run.")(princ);;; ttray33y ;;;
6297
6283
后起之秀
(ssget '(0 . "ARC,ELLIPSE,INSERT,LINE,LWPOLYLINE,MLINE,MTEXT,,POLYLINE,TEXT,XLINE"))
本版积分规则 发表回复 回帖后跳转到最后一页
微信公众平台
扫描访问手机版
点击图片下载手机App
|关于我们|小黑屋|乐筑天下 繁体中文
GMT+8, 2025-3-11 06:13 , Processed in 0.405327 second(s), 67 queries .
© 2020-2025 乐筑天下
在线时间:10:00-17:00
暂无
扫一扫,关注我们
帮助中心
关于我们
下载APP客户端