sivapathasunderam Posted July 17, 2021 Posted July 17, 2021 Need help to get the below format . . . (command "_.copy" (ssname ss 0) "" "0,0,0" "0,0,0" "_.erase" "p" "" "_.matchprop" "L" ss2 "" "_.draworder" ss2 "" "b" "_.erase" "L" bou ss "") ;|«Visual LISP© Format Options» (200 6 200 0 T "end of " 100 100 1 1 1 nil nil nil T) ;*** DO NOT add text below the comment! ***|; (command "_.copy" (ssname ss 0) "" "0,0,0" "0,0,0" "_.erase" "p" "" "_.matchprop" "L" ss2 "" "_.draworder" ss2 "" "b" "_.erase" "L" bou ss "") Quote
mhupp Posted July 18, 2021 Posted July 18, 2021 You should really break down each command into its own line for ease of understanding. (command "_.Copy" (ssname ss 0) "" "0,0,0" "0,0,0") ;copy into the same place (command "_.Erase" "p" "") ;erase what you just copied??? (command "_.Matchprop" "L" ss2 "") (command "_.Draworder" ss2 "" "b") (command "_.Erase" "L" "") ;added "" to complete the erase command. (command bou ss "") ;this doesn't mean anything and is probably causing your error (bou) ;if its a command that you pass a selection set too Quote
sivapathasunderam Posted July 19, 2021 Author Posted July 19, 2021 (edited) I was asking "How to do it by Lisp Style Format setting" - How to bring it to one line ! Edited July 19, 2021 by sivapathasunderam Quote
rlx Posted July 19, 2021 Posted July 19, 2021 as shown in your picture , close at the same line & fill to margin are the correct options , however maximum length of lines can not be greater than 100 if I'm correct. So only thing you can do is maybe run format code once for basic format and code check and then manually format code to your own preferences but after that never use auto format again on this code. I like my lines to be 140 characters so once I've got it right I don't use format code again. Quote
BIGAL Posted July 20, 2021 Posted July 20, 2021 Use search replace look for "_." replace with "(command _." then just press enter at correct line location repeatedly, I wont go into it but I use Word to do this sort of thing as you can look for end of line ^p and replace it eg ^p (command "_." 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.