Jump to content

Recommended Posts

Posted

I have had this issue with a few lisp routines over the years.

The lisp routine runs fine, but after running says at the command prompt "unknown command" for the command that just ran fine.

Any ideas what causes this?

It seems to happen when using the command function in the lisp routine.

here is a snippet of the code that I think is the offending part that causes the unknown command

 


(command
;Roof Battens
"pline" Batten-P1 Batten-P2 Batten-P3 Batten-P4 "c"
"ucs" "z" BattenUCS
"-array" "last" "" "r" "1" BattenSpace BattenCtrs
"ucs" "" ""
"cecolor" "8"
"line" Batten-P1 Batten-P3 ""
"ucs" "z" BattenUCS
"-array" "last" "" "r" "1" BattenSpace BattenCtrs
"ucs" "" ""
"line" Batten-P2 Batten-P4 ""
"ucs" "z" BattenUCS
"-array" "last" "" "r" "1" BattenSpace BattenCtrs
)

 

 

I think it might have to do with the ucs command or array command.

When I comment out this part of the command, the other lines (not shown in code) work without the unknown command coming up

Posted

Looks to me like you have an extra set of quotes in the ucs commands.

 

Should be "ucs" ""

not "ucs" "" ""

Posted

thanks, that worked, great

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