When I load a drawing into AC2004 the acaddoc.lsp file is not being loaded. It is in the acad 2004\support directory which is in the search path. The file is identical to the one I use with AC2000. I can load it from the command line just fine - IF I include the full search path. (vl-load-com) (load "calldll") Any ideas? Tom Craft
Are you sure you are in the right group? ;^) -- R. Robert Bell, MCSE www.AcadX.com | When I load a drawing into AC2004 the acaddoc.lsp file is not being | loaded. It is in the | acad 2004\support directory which is in the search path. The file is | identical to the one I use with AC2000. I can load it from the command | line just fine - IF I include the | full search path. | | (vl-load-com) | (load "calldll") | | Any ideas? | | Tom Craft |
Perhaps not, but how are other VB developers getting their class calling Vlisp routines automatically loaded?
Ah, but see, your original post mentioned nothing about VBA. <vbg> AutoCAD 2004 changed the default locations for support files. Look at your search path in the Preferences dialog. To see where AcadDoc.lsp is being loaded from, use this: (findfile "AcadDoc.lsp"). -- R. Robert Bell, MCSE www.AcadX.com | Perhaps not, but how are other VB developers getting their class calling | Vlisp routines automatically loaded? | | "R. Robert Bell" wrote: | | > Are you sure you are in the right group? | > | > ;^) | > | > -- | > R. Robert Bell, MCSE | > www.AcadX.com | > | > | > | When I load a drawing into AC2004 the acaddoc.lsp file is not being | > | loaded. It is in the | > | acad 2004\support directory which is in the search path. The file is | > | identical to the one I use with AC2000. I can load it from the command | > | line just fine - IF I include the | > | full search path. | > | | > | (vl-load-com) | > | (load "calldll") | > | | > | Any ideas? | > | | > | Tom Craft | > | |
I didn't think acaddoc.lsp existed until created by the user. The only instance of the file is covered by the search path and I can load it manually without stating the path
You stated in the original post that you needed to use the full path to manually load it. Have you changed something since that first post? -- R. Robert Bell, MCSE www.AcadX.com | I didn't think acaddoc.lsp existed until created by the user. The only instance | of the file is covered by the search path and I can load it manually without | stating the path | | "R. Robert Bell" wrote: | | > Ah, but see, your original post mentioned nothing about VBA. <vbg> | > | > AutoCAD 2004 changed the default locations for support files. Look at your | > search path in the Preferences dialog. To see where AcadDoc.lsp is being | > loaded from, use this: (findfile "AcadDoc.lsp"). | > | > -- | > R. Robert Bell, MCSE | > www.AcadX.com | > | > | > | Perhaps not, but how are other VB developers getting their class calling | > | Vlisp routines automatically loaded? | > | | > | "R. Robert Bell" wrote: | > | | > | > Are you sure you are in the right group? | > | > | > | > ;^) | > | > | > | > -- | > | > R. Robert Bell, MCSE | > | > www.AcadX.com | > | > | > | > | > | > | When I load a drawing into AC2004 the acaddoc.lsp file is not being | > | > | loaded. It is in the | > | > | acad 2004\support directory which is in the search path. The file is | > | > | identical to the one I use with AC2000. I can load it from the command | > | > | line just fine - IF I include the | > | > | full search path. | > | > | | > | > | (vl-load-com) | > | > | (load "calldll") | > | > | | > | > | Any ideas? | > | > | | > | > | Tom Craft | > | > | | > | |
No change, just wrong wording. I still need to use the entire path even when it is in a search path directory. I can call other lisp files in the same directory without the full path. Autocad keeps suggesting that the startup files be in the menu .mnl file, but I don't believe that the menu is reloaded with each new drawing. I am concerned on keeping track of VB and Lisp variables in a MDI environment.How is this being done in other VB/Acad projects? Thanks, Tom Craft
The .mnl *does* reload with each opened drawing. I use my customized menu's ..mnl for startup code. -- R. Robert Bell, MCSE www.AcadX.com | No change, just wrong wording. I still need to use the entire path even when it | is in a search path directory. I can call other lisp files in the same directory | without the full path. | Autocad keeps suggesting that the startup files be in the menu .mnl file, but I | don't believe that the menu is reloaded with each new drawing. I am concerned on | keeping track of VB and Lisp variables in a MDI environment.How is this being | done in other VB/Acad projects? | Thanks, | Tom Craft | | | "R. Robert Bell" wrote: | | > You stated in the original post that you needed to use the full path to | > manually load it. Have you changed something since that first post? | > | > -- | > R. Robert Bell, MCSE | > www.AcadX.com | > | > | > | I didn't think acaddoc.lsp existed until created by the user. The only | > instance | > | of the file is covered by the search path and I can load it manually | > without | > | stating the path | > | | > | "R. Robert Bell" wrote: | > | | > | > Ah, but see, your original post mentioned nothing about VBA. <vbg> | > | > | > | > AutoCAD 2004 changed the default locations for support files. Look at | > your | > | > search path in the Preferences dialog. To see where AcadDoc.lsp is being | > | > loaded from, use this: (findfile "AcadDoc.lsp"). | > | > | > | > -- | > | > R. Robert Bell, MCSE | > | > www.AcadX.com | > | > | > | > | > | > | Perhaps not, but how are other VB developers getting their class | > calling | > | > | Vlisp routines automatically loaded? | > | > | | > | > | "R. Robert Bell" wrote: | > | > | | > | > | > Are you sure you are in the right group? | > | > | > | > | > | > ;^) | > | > | > | > | > | > -- | > | > | > R. Robert Bell, MCSE | > | > | > www.AcadX.com | > | > | > | > | > | > | > | > | > | When I load a drawing into AC2004 the acaddoc.lsp file is not | > being | > | > | > | loaded. It is in the | > | > | > | acad 2004\support directory which is in the search path. The file | > is | > | > | > | identical to the one I use with AC2000. I can load it from the | > command | > | > | > | line just fine - IF I include the | > | > | > | full search path. | > | > | > | | > | > | > | (vl-load-com) | > | > | > | (load "calldll") | > | > | > | | > | > | > | Any ideas? | > | > | > | | > | > | > | Tom Craft | > | > | > | | > | > | | > | |
Thanks Robert, I thought I had read that the .mnl file loads only once. This will solve my problem, but still curious as to why the acaddoc.lsp file does not load. Tom
are you sure you don't have a copy in more than one location? You may be editing one copy while it's loading the other? acaddoc.lsp definitely loads every dwg...at least here and in the docs...