Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What do you add to your acaddoc.lsp?

14 REPLIES 14
Reply
Message 1 of 15
BrianHailey
823 Views, 14 Replies

What do you add to your acaddoc.lsp?

So, with the recent post on geomarkervisibility and the suggestion to set that variable in the acaddoc.lsp file, what else do people have set in there? Some things I've thought about:

filedia=1

cmddia=1

geomarkervisibility=0

ltscale=1

psltscale=1

msltscale=1

pickfirst=1

pickadd=2

navcubedisplay=1

 

Any others?

 

p.s. want to mess with somone? Set ZOOMWHEEL to 1. 🙂

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

14 REPLIES 14
Message 2 of 15
Jeff_M
in reply to: BrianHailey

I include all of those except the navcubedisplay. I also have:

 

(vl-load-com) ;;to allow vlisp routines to run without needing it in every lisp I load

 

When I was using lisp to program with I had a number of helper utilities that I loaded as well.

 

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 15
BrianHailey
in reply to: Jeff_M

Now, you have to understand that I don't have any of those in my acaddoc.lsp file but if I were in a production environment, those definitely would be there.

 

As for the navcubedisplay, I find the navcube to be pretty useless unless you are in a 3D envirnonment.

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

Message 4 of 15
neilyj666
in reply to: BrianHailey

This is mine......

 

(setvar "attdia" 1)
(setvar "cmddia" 1)
(setvar "filedia" 1)
(setvar "pickfirst" 1)
(setvar "VISRETAIN" 1)
(setvar "UCSICON" 1)
(setvar "TRANSPARENCYDISPLAY" 1)
(setvar "geomarkervisibility" 0)
(setvar "OSMODE" 4259)
(setvar "osnapz" 1)
(setvar "SKPOLY" 1)
(setvar "DRAWORDERCTL" 1)
(setvar "EDGEMODE" 1)

 

 

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 5 of 15
neilyj666
in reply to: BrianHailey


@BrianHailey wrote:

So, with the recent post on geomarkervisibility and the suggestion to set that variable in the acaddoc.lsp file, what else do people have set in there? Some things I've thought about:

filedia=1

cmddia=1

geomarkervisibility=0

ltscale=1

psltscale=1

msltscale=1

pickfirst=1

pickadd=2

navcubedisplay=1

 

Any others?

 

p.s. want to mess with somone? Set ZOOMWHEEL to 1. 🙂


This one got me....actually NAVVCUBEDISPLAY....Smiley Wink!!!!

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 6 of 15
AllenJessup
in reply to: neilyj666

Mine's simple:

 

(SETVAR "AUTOSNAP" 5)
(SETVAR "OSMODE" 1)
(SETVAR "OSNAPNODELEGACY" 1)

 

I'll look in to including some others from this thread.

 

Allen



Allen Jessup
Engineering Specialist / CAD Manager

Message 7 of 15
rkmcswain
in reply to: BrianHailey


@BrianHailey wrote:

..... in the acaddoc.lsp file, what else do people have set in there?


Nothing that changes DBMOD from 0.

R.K. McSwain     | CADpanacea | on twitter
Message 8 of 15
AllenJessup
in reply to: BrianHailey

After reading this thread this is what I've decided to use:

 

(SETVAR "AUTOSNAP" 5)

(SETVAR "OSMODE" 1)

(SETVAR "OSNAPNODELEGACY" 1)

(SETVAR "CMDDIA" 1)

(SETVAR "FILEDIA" 1)

(SETVAR "PICKFIRST" 1)

(SETVAR "VISRETAIN" 1)

(SETVAR "GEOMARKERVISIBILITY" 0)

(SETVAR "SKPOLY" 1)

 

Allen

 

 



Allen Jessup
Engineering Specialist / CAD Manager

Message 9 of 15

Since the acaddoc.lsp file gets overwritten if I do a repair/re-install, I put all my settings in a acad.lsp and in the Options set it to load with every drawing.  I have my acad.lsp file stored on a network in my user folder, and I have that folder in my support paths.



Lisa Pohlmeyer
Civil 3D User
Website | Facebook | Twitter

Message 10 of 15
jmayo-EE
in reply to: BrianHailey

Here is our acaddoc.lsp shared to all.

 

(if (not (zerop (getvar "mirrtext")))(setvar "mirrtext" 0))
(if (not (zerop (getvar "plinegen")))(setvar "plinegen" 1))
(if (not (zerop (getvar "filedia")))(setvar "filedia" 1))
(if (not (zerop (getvar "cmddia")))(setvar "cmddia" 1))
(if (not (zerop (getvar "pellipse")))(setvar "pellipse" 1))
(if (not (zerop (getvar "plinetype")))(setvar "plinetype" 2))
(if (not (zerop (getvar "geomarkervisibility")))(setvar "geomarkervisibility" 0))
(LOAD"PLJOIN")

John Mayo

EESignature

Message 11 of 15
Jeff_M
in reply to: Lisa_Pohlmeyer


@LisaPohlmeyer wrote:

Since the acaddoc.lsp file gets overwritten if I do a repair/re-install, I put all my settings in a acad.lsp and in the Options set it to load with every drawing.  I have my acad.lsp file stored on a network in my user folder, and I have that folder in my support paths.


Lisa, this file never gets altered by repair/reinstall/update (or it shouldn't, mine doesn't). Both acad.lsp and acaddoc.lsp files are for the sole use of end-users. The acad2***.lsp and acaddoc2***.lsp files DO get replaced and are highly recommended to avoid placing any customizations into becuase of that.

 

I've used the same acaddoc.lsp file for years (adding & removing things along the way) in my AcadLisp folder. This way I just need to add that folder to the support path whenever I get a new version.

Jeff_M, also a frequent Swamper
EESignature
Message 12 of 15
rkmcswain
in reply to: Lisa_Pohlmeyer


@LisaPohlmeyer wrote:

Since the acaddoc.lsp file gets overwritten if I do a repair/re-install, I put all my settings in a acad.lsp and in the Options set it to load with every drawing.  I have my acad.lsp file stored on a network in my user folder, and I have that folder in my support paths.


That is incorrect.

"acad.lsp" and "acaddoc.lsp" are USER files are will never be overwritten by AutoCAD.

You are thinking of "acad20xx.lsp" and "acad20xxdoc.lsp" - these are PROGRAM files and may be overwritten.

 

IMO - you should use "Acad.lsp" to load things [per session] and use "acaddoc.lsp" to load things [per drawing].

 

 

R.K. McSwain     | CADpanacea | on twitter
Message 13 of 15
jmayo-EE
in reply to: rkmcswain

"IMO - you should use "Acad.lsp" to load things [per session] and use "acaddoc.lsp" to load things [per drawing]."

 

That's how we do it. Although I have seen very little use for us in placing things in acad.lsp. All those things seem to work better for us if we force load them with each new dwg.

John Mayo

EESignature

Message 14 of 15
rkmcswain
in reply to: jmayo-EE


@Anonymous wrote:

..... I have seen very little use for us in placing things in acad.lsp.


Yes, it's fairly small. Generally, setting global variables that other routines need, setting the support file search path(s), setting registry saved setvars, and loading things that only need to be loaded once per session (mditabs.arx)

R.K. McSwain     | CADpanacea | on twitter
Message 15 of 15
jmayo-EE
in reply to: rkmcswain

Oh yes Randy there is a real need for that file just not in our small work environment with very few addon apps. I didn't mean to sound like acad.lsp is useless. The keywords were, 'for us'. 🙂

 

I could probably load pljoin in acad.lsp but it's easier for me to port, update, etc with only one file.

John Mayo

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report