How can I load the Object ARX. Net program with the Acad system startup?

Source: Internet
Author: User
In the process of developing autocad2008 with vs2008, the program is well written but loading is too troublesome. The following two solutions are provided after research:
1. Modify the acad2008.lsp file and add the following content:
(Setvar "filedia" 0)
(Command "netload" "smartsoft. acadtools. dll ")
(Setvar "filedia" 1)
ACAD is automatically loaded when it is started, but the search path of the loader must be set so that ACAD can be found and loaded at startup.
2. Load by modifying the Registry: create the following key value [HKEY_LOCAL_MACHINE \ SOFTWARE \ Autodesk \ AutoCAD \ r17.1 \ ACAD-6001: 804 \ applications \ smartsoft], "smartsoft" is your own key value. Under this key value, create your own item:
"Description" = "smartsoft acadtools" -- program description
"Loader" = "E: \ smartsoft. Application \ release \ bin \ smartsoft. acadtools. dll" -- DLL program to be loaded
"Loadctrls" = DWORD: 00000002
"Managed" = DWORD: 00000001
Create a new key: commands under the key you just created. Create your command under this key: command name = namespace. class. method, such as ("smexplorer" = "smartsoft. acadtools. workbench. smexplorer ")
The following provides a complete registry export content:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE \ SOFTWARE \ Autodesk \ AutoCAD \ r17.1 \ ACAD-6001: 804 \ applications \ smartsoft]
"Description" = "smartsoft acadtools"
"Loader" = "E: \ smartsoft. Application \ release \ bin \ smartsoft. acadtools. dll"
"Loadctrls" = DWORD: 00000002
"Managed" = DWORD: 00000001

[HKEY_LOCAL_MACHINE \ SOFTWARE \ Autodesk \ AutoCAD \ r17.1 \ ACAD-6001: 804 \ applications \ smartsoft \ commands]
"Smexplorer" = "smartsoft. acadtools. workbench. smexplorer"

Source: http://discussion.autodesk.com/thread.jspa? Messageid = 4531456

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.