create a toolbar and icon
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
create a toolbar and icon

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
vijaya
Guest





Posted: Wed Dec 08, 2004 9:43 am    Post subject: create a toolbar and icon Reply with quote

1. How to create a toolbar and add an icon whenever autocad starts? And When I click on the icon I want to run my vba code. How do I do that?Can Any one help me?
2. I created a toolbar and add icons. once I close and open autocad I'm getting smiling faces instead of icons.What should I do to avoid that ?

Back to top
Mike Tuersley
Guest





Posted: Wed Dec 08, 2004 9:59 pm    Post subject: Re: create a toolbar and icon Reply with quote

1. Look at custom_menu.dvb located under [install]\VBA\VBAIDEMenu

2. Make sure the icons are located within AutoCAD's support file path
and/or code the entire path name to the icons. Additonally, you can create
a resource dll to stre/retrieve the icons.

-- Mike
___________________________
Mike Tuersley
CADalyst's CAD Clinic
Rand IMAGINiT Technologies
___________________________
the trick is to realize that there is no spoon...
Back to top
vijaya
Guest





Posted: Sat Dec 11, 2004 10:33 am    Post subject: Re: create a toolbar and icon Reply with quote

Thanks for your reply.
Can you explain more clearly about a resource dll. I dont have any idea about a resource dll.
Actually I want to create a toolbar in a remote system. So when I run my exe (setup file), I'm loading (coping) all my files into a new folder. When I run Autocad it is searching in support folder and icons are not coming. Can you please advice me

Back to top
Ed Jobe
Guest





Posted: Mon Dec 13, 2004 9:44 pm    Post subject: Re: create a toolbar and icon Reply with quote

A resource file contains things like icons, bitmaps, and dialogs that are
used elsewhere in your exe. There is a vb add-in called VB6 Resource Editor
to allow you to work with this kind of file. VB comes with a command line
tool calle rc.exe (resource compiler) for creating it. With this file, you
wouldn't need to install a bunch of bitmaps, just one dll.

The other problem you are having, is it seems that you havn't told acad
where to search for your icons. You can manually do this from Options>Files
tab>Support File Search Path and adding your folder to the list. During your
setup, you can programatically alter
AcadApplication.Preferences.Files.SupportPath.

--
----
Ed
----
"vijaya" <nospam@address.withheld> wrote in message
news:10889270.1102743254465.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
Thanks for your reply.
Can you explain more clearly about a resource dll. I dont have any idea
about a resource dll.
Actually I want to create a toolbar in a remote system. So when I run my
exe (setup file), I'm loading (coping) all my files into a new folder. When

I run Autocad it is searching in support folder and icons are not coming.
Can you please advice me
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB