One of the ways:
Code:(defun c:test(/ oSet) (if(setq oSet(ssget "_C" (list -10.0 -10.0)(list 110.0 110.0))) (command "_.change" oSet "" "_p" "_c" "Red" "") (princ "\nNothing found!") ); end if (princ) ); end of c:test
Registered forum members do not see this ad.
Hi all,
I have some objects in the area of -10,-10,0 and 110,110,0
What I want to know, is, is there a bit of code that will select the
objects in that area and change their colour to red?
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Albert Einstein
SET FILEDIA = 1
One of the ways:
Code:(defun c:test(/ oSet) (if(setq oSet(ssget "_C" (list -10.0 -10.0)(list 110.0 110.0))) (command "_.change" oSet "" "_p" "_c" "Red" "") (princ "\nNothing found!") ); end if (princ) ); end of c:test
Registered forum members do not see this ad.
thanks m8,
Works a treat
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Albert Einstein
SET FILEDIA = 1
Bookmarks