I'm trying to add two commands from the CUI into my custom created ribbon. Netload and Crslib. The purpose is to be able to create symbols/attributes from a spreadsheet by simply clicking those two commands. Can you give me a solution please? Please use AutoCAD Electrical 2025.
Generally speaking, You would create a new command in the CUI and link your custom programs under Macro: ^C^CYourCommandName
The name you provide to your custom command will be used to call your program. You can also add icon to your command.
Here is quick rundown:
1. Create a New Command
2. Link your program under Marco of the new command
3. Give the new command a name that doesn't overlap with AutoCAD's in-built commands.
4. Drag and Drop the command to Ribbon > Panel > Existing or a new custom panel
5. Drag and Drop the Panel to your custom or an existing ribbon (If it doesn't exist already), depending on where you want to show the command.
I am assuming you already know most of the stuff about adding to CUI since I see a custom Tab in your screenshot. Let me know if you have more questions.
Also make sure that your custom program is stored under AutoCAD's support file paths.
I know for LISP files you can just declare them under CUI > LISP Files and they will be loaded automatically. Then you can just start using function and commands in your lisp programs from command line. Not sure how would you go about automatically loading NET dll files. Maybe you have to create a lisp that loads your NET programs automatically and then you can start using your custom commands with the CUI steps mentioned above.
or maybe something like ^C^CNETLOAD; "C:\\Path\\To\\Your\\DLLFile.dll";
Can't find what you're looking for? Ask the community or share your knowledge.