I've created a few commands for AutoCAD using vb.net.
I've noticed the standard AutoCAD commands have a preview, with a short explanation of the command.
(I'm calling it 'commandpreview', but I really don't know if this is allright. I've attached a screenshot with an example.)
Because some command are not used frequently I wanted to create a 'commandpreview' for each of my commands to make it easier to choose the right command.
How can I achieve this? Is it even possible using vb.net? I really don't know where to start.
The standard commands also have icons, is it possible to use my own icons? I've tried to pick an icon in Visual Studio, but this option is greyed out for class-modules.
Solved! Go to Solution.
The preview that is shown in the command line is the same as the one that gets displayed when hovering over the ribbon item for the command. I have attached a screenshot of the details shown for PLine to clarify this and all that info including the image comes from the extended help file.
Here is some info on creating the extended help and associating it with a command :
Thanks for pointing me in the right direction!! I got it working!!!
Is there a way to automate this for other computers? Or do I have to edit de cui manually on every computer?
I can't seem to find how to export the settings for the commands I added to the cui.
Yes, it can be automated using the CUI API.
I have attached a sample code.
To try it, here are the steps :
0) Unzip the extended help files (xaml.zip) to C:\Temp
1) Build the dll using the file in Class1.zip
2) Start AutoCAD 2013. (For other versions change "accore.dll" in the code to "acad.exe")
3) Run the "PrepareRibbonTab" command
4) Run the "MyTestCommand" from the AutoCAD command line or the "MyTab" ribbon tab.
The extended help should appear after a delay.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.