Message 1 of 12
Startup File Confusion - LISP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
ive read and read about where/which file to edit to add stuff to automatically change system variables when autocad is opened.
it still doesnt work.
as far as i know you add script into acad2022doc.lsp correct? does it matter where you put it? below is an example of code ive added and it wont change anything i end up doing a whole drawing thinking my lines are at 0elv and they arent.
;;;;; Auto-Ortho OFF
(setvar "orthomode" 0)
(princ "Ortho-Mode OFF)
;;;; Osnap Set to 0
(defun ai_entsnap (msg osmode / entpt)
(while (not entpt)
(setq entpt (last (entsel msg)))
)
(if osmode
(setq entpt (osnap entpt osmode))
)
entpt
)
(setvar "OSNAPZ" 1)
ive also tried to change the system variables for settings in autocad thru the system variable dialog box and some stuff saves but other stuff wont like the osnapz and mirrtext. so im confused as to why or whats causing this.
(setvar "OSNAPZ" 1)