Jump to content

Recommended Posts

Posted

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

 

Posted

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

 

Posted (edited)

I was asking "How to do it by Lisp Style Format setting" - How to bring it to one line !

Lisp Format.jpg

Edited by sivapathasunderam
Posted

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.

Posted

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

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