Jump to content

too many arguments error on lsp anyone know why


chelsea1307

Recommended Posts

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)
)

Link to comment
Share on other sites

You have an extra ")" on your first line, or missing and extra "(" on your first line.

 

(defun c:freeze ()...

Link to comment
Share on other sites

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)
)

Link to comment
Share on other sites

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])

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...