Author Topic: Lisp Problems in 2010  (Read 7395 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Lisp Problems in 2010
« Reply #15 on: September 10, 2009, 09:11:08 AM »
what happend when you try this...
Code: [Select]
(eval vla-getboundingbox)
Keep smile...

Luke

  • Guest
Re: Lisp Problems in 2010
« Reply #16 on: September 10, 2009, 09:14:48 AM »

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Lisp Problems in 2010
« Reply #17 on: September 10, 2009, 09:25:08 AM »
a HA !!!

run (vl-load-com)
before using your lisp.

;-)
Keep smile...

Luke

  • Guest
Re: Lisp Problems in 2010
« Reply #18 on: September 10, 2009, 09:39:52 AM »
That did it.  Thank you.

Any idea why they ran in 2006 without it?

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Lisp Problems in 2010
« Reply #19 on: September 10, 2009, 09:54:12 AM »
maybe your (vl-load-com) its loaded at the startup or in some lisp or in acad.lsp/acaddoc.lsp...
to be sure....when VL function is used...put the code at the command start.

eg:
Code: [Select]
(defun c:mylisp ()
(vl-load-com)
...
)
Keep smile...

Luke

  • Guest
Re: Lisp Problems in 2010
« Reply #20 on: September 10, 2009, 10:01:22 AM »
I put it in my acad.lsp so I hopefully will not have to worry about it again.

Thanks again for your help!

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Lisp Problems in 2010
« Reply #21 on: September 10, 2009, 10:03:55 AM »
I put it in my acad.lsp so I hopefully will not have to worry about it again.

Thanks again for your help!

it's a pleasure Luke.  :kewl:
Keep smile...

GDF

  • Water Moccasin
  • Posts: 2081
Re: Lisp Problems in 2010
« Reply #22 on: September 10, 2009, 12:09:39 PM »
I put it in my acad.lsp so I hopefully will not have to worry about it again.

Thanks again for your help!

;;; 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.
;;;
;;; It should be noted that Autodesk's website is misleading about the load order.
;;; The menus load in the order they were initially loaded in, and *not* always
;;; the user menu first. The only way the user menu loads first is if all menus
;;; were removed and the user's menu was loaded first, then the other menus
;;; subsequently. In most cases people tend to leave Acad's menu there, then
;;; Express Tools (if installed), and then finally the user's menu.
;;; This can be verified by watching the menu load prompts:
;;; AutoCAD menu utilities loaded.
;;;
;;; Key files to needed to run this program:
;;; (1.) The "ACAD.lsp" file sets the path for the arch program along with the saved autocad
;;;     environment settings for a clean restore to generic autocad when the arch program
;;;     is unloaded. This is the only file that must be located at each workstation within
;;;     the autocad support directory. It only loads at AutoCAD startup.
;;; (2.) The "ACADDOC.lsp" loads the "ARCH_INITIALIZE.fas" file.
;;; (3.) The "ARCH_INITIALIZE.fas" initialize the setup.
;;; (4.) Custom settings are controled by the "custom_xxx.lsp" file.
;;; (5.) The "ARCH.mnc" loads the "ARCH.mnl" file automatically which contains many
;;;     misc functions required to operate this program.
;;; (6.) The "ARCH_SUBROUTINES.fas" contains all of the subfunctions.
;;; (7.) All bitmaps for the toolbars are compiled in the "ARCH.dll" which is loaded
;;;     automatically.
;;; (8.) The "ARCH.dcl" file must be located in the acad support file search path
;;;     it contains all of the dialog box widgets for the arch program.
;;;     @include "..\\ARCH.dcl"
;;;
;;;
;;; General Rule is to NOT edit the acad200Xdoc.lsp file because it is an Autocad file
;;; that CAN and WILL be replaced if you install patches. I would suggest using the
;;; acaddoc.lsp for the code. Following is a list of AutoCAD, Express Tools, and
;;; user-defined files in the order they are loaded when you first start the program.
;;;
;;; File         For use by:    
;;; acad200X.lsp AutoCAD    
;;; acad.rx         User    
;;; acad.lsp User    
;;; acad200Xdoc.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
;;;
;;; To make sure you are pulling the correct acaddoc.lsp copy and paste the following
;;; line to the command line (findfile "acaddoc.lsp") You should get the path returned
;;; and if it is not where you think the file is installed you have more than one file.
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64