Search the Community
Showing results for tags 'chprop'.
-
At my job, i have a very tedious job of changing layers from proposed to existing and vice versa our layer setup is very basic "LayerName"=existing layer "LayerName-PR"=Proposed layer. i have recently bought a book to to learn AutoLisp and I've gotten the basic concept. I know that i want to ssget LayerName and setq that name to L then CHPROP LA to L-PR. but i want to know if someone has anything like this already and could help me. I'd like to do a mass select and have it automatically change the entities to their respective PR layer. also vice versa, to remove PR. i'm not looking for a layer renaming lisp. i'm looking for a entity layer changing lisp. anything helps. thanks.
-
Error on chprop command for Talude Lisp Function.
cyberrog posted a topic in AutoLISP, Visual LISP & DCL
Post Moved for Lisp Forum: here is the Link I'm creating a function for talude. But, on the line: command "chprop" ULT "" "LT" "" "autotalude1" "") it doesnt recognizes the command. can anyone tell me why? Here is the part of the code where I invert the propertie: (setq ULT (entlast)) (command "pedit" ult "spline" "") (setvar "celtype" "autotalude2") (initget 1 "S N") (setq inv (getkword "\nWant to Invert?<S/N>")) (if (= inv "S") (command "chprop" ULT "" "LT" "" "autotalude1" "") (setvar "celtype" "autotalude1") ;(command "pedit" ULT "r" "" "yes" "" "s" "") ;(command "pedit" ult "S" "") )