chelsea1307 Posted June 17, 2009 Share 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 Link to comment Share on other sites More sharing options...
JeepMaster Posted June 17, 2009 Share Posted June 17, 2009 You have an extra ")" on your first line, or missing and extra "(" on your first line. (defun c:freeze ()... Quote Link to comment Share on other sites More sharing options...
chelsea1307 Posted June 17, 2009 Author Share Posted June 17, 2009 knew it was simple thanks Quote Link to comment Share on other sites More sharing options...
The Buzzard Posted June 17, 2009 Share 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 Link to comment Share on other sites More sharing options...
jammie Posted June 17, 2009 Share 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 Link to comment Share on other sites More sharing options...
chelsea1307 Posted June 17, 2009 Author Share Posted June 17, 2009 thanks, will add that! Quote Link to comment Share on other sites More sharing options...
Shawndoe Posted June 17, 2009 Share Posted June 17, 2009 Hi, Try this instead. (command "._Layer" "Freeze" "structural,sahco,jwmc,tbf,3d piping" "") Have a good one. Shawndoe Quote Link to comment Share on other sites More sharing options...
chelsea1307 Posted June 17, 2009 Author Share Posted June 17, 2009 knew it could be even simpler... thanks 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.