cyberrog Posted May 11, 2011 Share Posted May 11, 2011 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" "") ) Quote Link to comment Share on other sites More sharing options...
BlackBox Posted May 11, 2011 Share Posted May 11, 2011 I'm pretty sure this post belongs in the LISP forum. I don't have any talude lisp file (that I know of), perhaps you can post that as well? Quote Link to comment Share on other sites More sharing options...
cyberrog Posted May 11, 2011 Author Share Posted May 11, 2011 I'm creating a function for talude. But, on the line: Code: 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: Code: (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") ) Quote Link to comment Share on other sites More sharing options...
alanjt Posted May 11, 2011 Share Posted May 11, 2011 If you type "S" at your getkword prompt, it should work. You could try account for language and redefining by using "_.chprop" instead. You could also try the old CHANGE command. Quote Link to comment Share on other sites More sharing options...
cyberrog Posted May 11, 2011 Author Share Posted May 11, 2011 What do you mean "account for language"? Quote Link to comment Share on other sites More sharing options...
alanjt Posted May 11, 2011 Share Posted May 11, 2011 What do you mean "account for language"? In case you aren't using an English version of AutoCAD. Quote Link to comment Share on other sites More sharing options...
SLW210 Posted May 11, 2011 Share Posted May 11, 2011 I have combined your posts, there is no need to create two threads for same question. If you feel you have posted in wrong section, a moderator can move your thread for you. Multiple threads for the same question gets confusing. Thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.