HI,
I'd like to know how to define an image icon for a command (like "acedSetFunHelp" which define a help URL) which will be "understood" by the command line. The goal is to have:
I have a custom CUI (to add my commands in the ribbon) where I defined a small and large icon file, but apparently command line doesn't use that. Last information, I register my commands with:
acedRegCmds->addCommand
Regards,
Jonathan
Solved! Go to Solution.
Solved by Balaji_Ram. Go to Solution.
I haven't tried it (yet), but acedRegisterCommandBitmapQuery() seems to do the job.
There is also a acedGetBitmapForCommand() function, for which the documentation implies that you can associate a bitmap with a command through Command Display Name in the CUI, but that didn't appear to work.
Hi,
Thank you for your reply. I have one remark about the function acedRegisterCommandBitmapQuery:
So why do I need to register this function? Maybe there is a trick for the "bitmap-to-command association" in the CUI?
Regards,
Jonathan
Hi Jonathan,
Recently there was a discussion on a similar topic in the AutoCAD .Net forum.
Can you please try if the code posted there is of any use ?
http://forums.autodesk.com/t5/NET/Commandpreview-on-commandline/m-p/3803567#M33989
Hi,
Thank you for your post. It's very interseting and I think I'm going to implement xaml file to have extended help for all my commands. I wanted to do for a long time .
But, I think it doesn't resolve my problem. In the ribbon, all small and large images associated to the commands are shown but not in the command line (auto-completer list). Have you an idea about that? (Note that I use images in PNG format)
Regards,
Jonathan
I am glad you found it interesting.
In the sample code from that thread, please note this line while the macro is created :
<<<
menuMac.macro.CLICommand = "MyTestCommand";
>>>
This ensures that the macro and its images are associated with the custom command.
After you run the sample, you will find the image getting displayed for the custom command as shown in the attached image while autocomplete displays it.
Perfect. This was that I had missed. My CLICommand text didn't match the command name.
Thank you very much for your help.
Regards,
Jonathan
in my case, it's enough to have just a quix file.
so, if the question is about your own command which is added to autocad menu, something is wrong with your quix.
@Anonymous wrote:
in my case, it's enough to have just a quix file.
quix or cuix?
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"
Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Can't find what you're looking for? Ask the community or share your knowledge.