chelsea1307 Posted June 17, 2009 Posted June 17, 2009 yes i know this could be written better 20 different ways and if someone would like to go ahead. If not if someone could tell me how to fix it so it will run and preform the desired results that would be great! (defun C:freeze) (command "_.layer" "Freeze" "structural") (command "_.layer" "Freeze" "sahco") (command "_.layer" "Freeze" "jwmc") (command "_.layer" "Freeze" "tbf") (command "_.layer" "Freeze" "3d piping") (princ) ) Quote
JeepMaster Posted June 17, 2009 Posted June 17, 2009 You have an extra ")" on your first line, or missing and extra "(" on your first line. (defun c:freeze ()... Quote
The Buzzard Posted June 17, 2009 Posted June 17, 2009 yes i know this could be written better 20 different ways and if someone would like to go ahead. If not if someone could tell me how to fix it so it will run and preform the desired results that would be great! [color=red](defun C:freeze)[/color] (command "_.layer" "Freeze" "structural") (command "_.layer" "Freeze" "sahco") (command "_.layer" "Freeze" "jwmc") (command "_.layer" "Freeze" "tbf") (command "_.layer" "Freeze" "3d piping") (princ) ) chelsea, please compare [color=red](defun C:freeze ()[/color] (command "_.layer" "Freeze" "structural") (command "_.layer" "Freeze" "sahco") (command "_.layer" "Freeze" "jwmc") (command "_.layer" "Freeze" "tbf") (command "_.layer" "Freeze" "3d piping") (princ) ) Quote
jammie Posted June 17, 2009 Posted June 17, 2009 following on from JeepMaster's post, you may need to add "" to the end of each line where you are freezing the layer. It will allow each line of code to complete and exit cleanly (command "_.layer" "Freeze" "structural" [b][color="Navy"]""[/color][/b]) Quote
Shawndoe Posted June 17, 2009 Posted June 17, 2009 Hi, Try this instead. (command "._Layer" "Freeze" "structural,sahco,jwmc,tbf,3d piping" "") Have a good one. Shawndoe Quote
chelsea1307 Posted June 17, 2009 Author Posted June 17, 2009 knew it could be even simpler... thanks Quote
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.