Hi all,
I have a question regarding the ACADDOC.lsp file. I'm having issues with the geomarkervisibility and want to set it to startup to be 0 so it turns off automatically. I found this post which says to write it into your ACADDOC.lsp file:
However, I cannot find this file anywhere and using (findfile "ACADDOC.lsp") returns with nil. Also cannot find the main ACAD.lsp file. Have looked in all support file paths and applicable folders.
Just wondering how to set this up and have ACAD run the lsp automatically when ACAD opens a drawing. I'd also like to include the following list into the startup lsp. I am a newbie when it comes to LSPs but use LSPs written by others frequently and have them loaded into my CUI file. Any help or guidance would be appreciated!
(setvar "attdia" 1)
(setvar "cmddia" 1)
(setvar "filedia" 1)
(setvar "pickfirst" 1)
(setvar "geomarkervisibility" 0)
(setvar "selectionpreview" 3)
(setvar "highlight" 1)
(setvar "mirrtext" 0)
(setvar "visretain" 0)
(setvar "pickadd" 2)
(setvar "pickauto" 5)
(setvar "pickfirst" 1)
(setvar "sdi" 0)
(setvar "qaflags" 0)
Thanks,
Sara
Solved! Go to Solution.
Solved by john.vellek. Go to Solution.
Solved by Patchy. Go to Solution.
@Anonymous wrote:
Hi all,
I have a question regarding the ACADDOC.lsp file. I'm having issues with the geomarkervisibility and want to set it to startup to be 0 so it turns off automatically. I found this post which says to write it into your ACADDOC.lsp file:
However, I cannot find this file anywhere and using (findfile "ACADDOC.lsp") returns with nil. Also cannot find the main ACAD.lsp file. Have looked in all support file paths and applicable folders.
Just wondering how to set this up and have ACAD run the lsp automatically when ACAD opens a drawing. I'd also like to include the following list into the startup lsp. I am a newbie when it comes to LSPs but use LSPs written by others frequently and have them loaded into my CUI file. Any help or guidance would be appreciated!
(setvar "attdia" 1)
(setvar "cmddia" 1)
(setvar "filedia" 1)
(setvar "pickfirst" 1)
(setvar "geomarkervisibility" 0)
(setvar "selectionpreview" 3)
(setvar "highlight" 1)
(setvar "mirrtext" 0)
(setvar "visretain" 0)
(setvar "pickadd" 2)
(setvar "pickauto" 5)
(setvar "pickfirst" 1)
(setvar "sdi" 0)
(setvar "qaflags" 0)
Thanks,
Sara
Hi Sara,
acad.lsp and acaddoc.lsp, are not file from AutoCAD, are files created by the user...
EDIT:too slow...
Hope this helps,
Henrique
Hi Sara,
Perhaps this file will get you started. It simply needs to be placed in your support (trusted) path.
Please hit the Accept as Solution button if my post fully solves your issue or answers your question.
Alternatively, since you are only changing variables you could use the SYSVARMONITOR feature.
Thanks chauhuh. The problem with that is that the geomarkervisibility is saved per drawing and not systemwide. I have it turned off for new drawings but it doesn't change existing drawings so I'd like it to run when opening the drawing so it turns it off.
http://help.autodesk.com/view/ACD/2017/ENU/?guid=GUID-24FF3B38-8A3E-428E-8AD4-E1182149489A
Ah well then acaddoc.lsp is your best bet. You should just be able to copy what you have and put it in the file.
Just make sure it is in your support path.
Thanks.
Hi SFronius,
I am checking back to see if my post with the attached acaddoc.lsp helped you with your problem. Please add a post with your results so other Forum users can benefit.
Please hit the Accept as Solution button if my post fully solves your issue or answers your question.
Thanks John! I added it to my support file search path and loaded it into my CUI file. I tested it with a drawing that had the geomarkervisibility set at 1, and added the LSP and restarted AutoCAD. When I opened up the aforementioned drawing it was gone. Thank you so much!
Can't find what you're looking for? Ask the community or share your knowledge.