AUTOLOAD
I would like, typing the file on_start_default.lsp, load directly without use ever the appload command, a brx application. That is the useful MtmdEdit.11.brx... I wrote in the file on_start_default.lsp:
(load "C:\Program Files\Bricsys\Bricscad V11\Support\MtmdEdit_BricsCAD\MtmdEdit.11.brx")
But, at the start of BC, it show:
; error: LOAD failed: 'C:Program FilesBricsysBricscad V11SupportMtmdEdit_BricsCADMtmdEdit.11.brx'
Instead, trought the appload command it is OK and shows that the path is correct:
Caricando C:\Program Files\Bricsys\Bricscad V11\Support\MtmdEdit_BricsCAD\MtmdEdit.11.brx
: (arxload "C:/Program Files/Bricsys/Bricscad V11/Support/MtmdEdit_BricsCAD/MtmdEdit.11.brx")"C:/Program Files/Bricsys/Bricscad V11/Support/MtmdEdit_BricsCAD/MtmdEdit.11.brx"
please, somebody could help me?
Comments
-
Hi Olivio,
I think you must use a single forward slash "/" or two backward slashes in your path "\\" to make it work.
Try:
(load "C:/Program Files\Bricsys/Bricscad V11/Support/MtmdEdit_BricsCAD/MtmdEdit.11.brx")
or
(load "C:\\Program Files\\Bricsys\\Bricscad V11\\Support\\MtmdEdit_BricsCAD\\MtmdEdit.11.brx")
- Rakesh Rao
- www.coordsys.com0 -
Hi Olivio,
I think you must use a single forward slash "/" or two backward slashes in your path "\\" to make it work.
Try:
(load "C:/Program Files\Bricsys/Bricscad V11/Support/MtmdEdit_BricsCAD/MtmdEdit.11.brx")
or
(load "C:\\Program Files\\Bricsys\\Bricscad V11\\Support\\MtmdEdit_BricsCAD\\MtmdEdit.11.brx")
- Rakesh Rao
- www.coordsys.com0 -
Thanks,
I tried so and by other manner... It does not. I asked to the support.Bye!
0 -
Olivio, your first post contains the answer to your problem! To load a brx aplication you have to use (arxload ...) instead of (load ...). So putting:
(arxload "C:/Program Files/Bricsys/Bricscad V11/Support/MtmdEdit_BricsCAD/MtmdEdit.11.brx")
in your on_start_default.lsp should work0 -
Thanks Roy,
to inform others like me:
I wrote the command line in a new file named (as described in the on_start_default.lsp :
;this file will run once when the program starts.
;please do not edit. For custom actions on starting the program please create a file on_start.lsp.
One correct syntax command line is (in the on_start.lsp):
(arxload "C:\\Program Files\\Bricsys\\Bricscad V11\\Support\\MtmdEdit_BricsCAD\\MtmdEdit.11.brx")
Warning!: the path must be divided by double back-slash ( \\ ) because with one alone the BC shows:
* (arxload) : can not FIND file <C:Program FilesBricsysBricscad V11SupportMtmdEdit_BricsCADMtmdEdit.11.brx>
Otherwise, an other correct syntax is as Roy kindly explained me, that is the path is divided by singular normal slashes ( / ):
(arxload "C:/Program Files/Bricsys/Bricscad V11/Support/MtmdEdit_BricsCAD/MtmdEdit.11.brx")Thanks again...
0