Civil 3D Startup LISP for Perfomance

Civil 3D Startup LISP for Perfomance

Anonymous
Not applicable
1,371 Views
6 Replies
Message 1 of 7

Civil 3D Startup LISP for Perfomance

Anonymous
Not applicable

We have a startup LISP that we use for performance in Civil 3D 2016 and want to add a few more settings to it but stumped on how to add the

-INPUTSEARCHOPTIONS and make it turn off all the options or increase the time delay by 5-10 seconds.

 

Also to add in the LISP the AutoCAD options to turn off display paper shadow, paper background and uncheck display digital signature information.

 

Below is the code that we have and need the above code added to.

 

 

 

; Change settings for performance 08/15/2017
; WHIPTHREAD default 1
(setvar "WHIPTHREAD" 3)
; SAVEFIDELITY default 1
(setvar "SAVEFIDELITY" 0)
; LAYOUTREGENCTL default 0
(setvar "LAYOUTREGENCTL" 2)
; controls the reinitialization of AutoLISP between drawings
(setvar "LISPINIT" 1)
; Change SECURELOAD for 2016 WisDOT software
(setvar "SECURELOAD" 0)
; SELECTIONPREVIEW default 3
(setvar "SELECTIONPREVIEW" 0)
; CURSORBADGE default 2
(setvar "CURSORBADGE" 1)
; DYNMODE default 3
(setvar "DYNMODE" 0)
0 Likes
Accepted solutions (2)
1,372 Views
6 Replies
Replies (6)
Message 2 of 7

Ranjit_Singh
Advisor
Advisor
Accepted solution

Add below to your acaddoc.lsp

(setq *acadobj* (vlax-get-acad-object))
(vla-put-LayoutDisplayPaper (vla-get-display (vla-get-preferences *acadobj*)) :vlax-false)
(vla-put-LayoutDisplayPaperShadow (vla-get-display (vla-get-preferences *acadobj*)) :vlax-false) (setvar 'sigwarn 0)
(command "-inputsearchoptions" "_c" "_y" "")

For the -inputsearchoptions, adjust the command for correct input sequence per your goals

0 Likes
Message 3 of 7

Anonymous
Not applicable

Hello Ranjirt,

 

I'm getting ready to create the acaddoc.lsp but before I do that I'm wondering what I put in for the last section. Not sure what the c and y are and what goes between the hashes and also after -inputsearchoptions

 

"-inputsearchoptions" "_c" "_y" "")
 
0 Likes
Message 4 of 7

Anonymous
Not applicable
Go to autocad and type the command "-inputsearchoptions" all of the options are right there.


@Anonymous wrote:

Hello Ranjirt,

 

I'm getting ready to create the acaddoc.lsp but before I do that I'm wondering what I put in for the last section. Not sure what the c and y are and what goes between the hashes and also after -inputsearchoptions

 

"-inputsearchoptions" "_c" "_y" "")
 

 

0 Likes
Message 5 of 7

Ranjit_Singh
Advisor
Advisor
Accepted solution

@Anonymous wrote:

Hello Ranjirt,

 

I'm getting ready to create the acaddoc.lsp but before I do that I'm wondering what I put in for the last section. Not sure what the c and y are The c was for autocomplete and y was for yes. It was just an example.


The Autolisp command function takes the same prompts as you would input at AutoCAD command prompt. If you want to turn off all the options for inputsearchoptions, below should work

(command "-inputsearchoptions" "_c" "_n" "_r" "_n" "_s" "_n" "_t" "_n" "_m" "_n" "_d" 10 "")

 

0 Likes
Message 6 of 7

Anonymous
Not applicable

Ranjirt,

 

Thanks so much for helping me with this. I'm new to AutoCAD and glad to be learning a lot Smiley Happy

0 Likes
Message 7 of 7

Ranjit_Singh
Advisor
Advisor

Glad to have helped. See AutoCAD help here to learn about the command function.

0 Likes