Author Topic: Set lisp to run every time a DWG is opened  (Read 8273 times)

0 Members and 1 Guest are viewing this topic.

CADaver

  • Guest
Re: Set lisp to run every time a DWG is opened
« Reply #15 on: August 02, 2006, 10:45:41 AM »
acad.lsp ist the file for make something when acad starts
acaddoc.lsp ist the file for make something when new document starts
ACADLSPASDOC=1

i think, both files are not only for fun
??

CADmium

  • Newt
  • Posts: 33
Re: Set lisp to run every time a DWG is opened
« Reply #16 on: August 02, 2006, 03:57:52 PM »
ACADLSPASDOC=1

I know this Sysvar, but somethings i want only start when acad started and other things i want to do in each  document. if you don't have such differences , is ok with acad.lsp

I want only  tell about the both files ...
"Bei 99% aller Probleme ist die umfassende Beschreibung des Problems bereits mehr als die Hälfte der Lösung desselben."

GDF

  • Water Moccasin
  • Posts: 2081
Re: Set lisp to run every time a DWG is opened
« Reply #17 on: August 02, 2006, 04:01:36 PM »
ACADLSPASDOC=1

I know this Sysvar, but somethings i want only start when acad started and other things i want to do in each  document. if you don't have such differences , is ok with acad.lsp

I want only  tell about the both files ...

This may help...

Gary
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

GDF

  • Water Moccasin
  • Posts: 2081
Re: Set lisp to run every time a DWG is opened
« Reply #18 on: August 02, 2006, 04:07:05 PM »
And this...

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Following is a list of AutoCAD, Express Tools, and user-defined files in
;;; the order they are loaded when you first start the program. Go to AutoCAD
;;; Help and search for "support file loading" (including quotes) and the
;;; top result is "Order of support file loading" which nets the following:
;;;      <File For:>       <Use By:>
;;;      acad2000.lsp    AutoCAD
;;;      acad.rx       User
;;;      acad.lsp       User
;;;      acad2000doc.lsp    AutoCAD
;;;      acetutil.fas       Express Tools
;;;      acaddoc.lsp       User
;;;      mymenu.mnc    User
;;;      mymenu.mnl    User
;;;      acad.mnc       AutoCAD
;;;      acad.mnl       AutoCAD
;;;      acetmain.mnc    Express Tools
;;;      acetmain.mnl    Express Tools
;;;      s::startup       User
;;; Note: If the user-defined function S::STARTUP is included in the acad.lsp or
;;; acaddoc.lsp file or a MNL file, the function is called when you enter a new
;;; drawing or open an existing drawing. Thus, you can include a definition of
;;; S::STARTUP in the LISP startup file to perform any setup operations. For more
;;; information about the s::startup function, refer to the Customization Guide.


Gary
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Set lisp to run every time a DWG is opened
« Reply #19 on: August 02, 2006, 04:14:24 PM »
I use the same as ronjonp's (getvar 'DWGNAME) phrase, I never really looked at dwgtitled until today.  Cool.   I'm still wondering what CmdrDuh uses, though.   
Not been here at desk for a few days.  Let me go grab that code
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Set lisp to run every time a DWG is opened
« Reply #20 on: August 02, 2006, 04:31:30 PM »
I use dwgname
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Set lisp to run every time a DWG is opened
« Reply #21 on: August 02, 2006, 04:32:49 PM »
I never thought about using dwgtitled
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Set lisp to run every time a DWG is opened
« Reply #22 on: August 02, 2006, 04:34:13 PM »
That is much easier to check than my method.  I was striping off the first 7 characters and matching it against "Drawing", and going from there. 0 and 1 is much easier to use.
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Set lisp to run every time a DWG is opened
« Reply #23 on: August 03, 2006, 05:10:13 PM »
acad.lsp ist the file for make something when acad starts
acaddoc.lsp ist the file for make something when new document starts

Thanks....this confirm that I've done the right thing.    ^-^
Keep smile...