icon not found when bundle xml loads

icon not found when bundle xml loads

guy.dow
Contributor Contributor
371 Views
2 Replies
Message 1 of 3

icon not found when bundle xml loads

guy.dow
Contributor
Contributor

Greetings everyone,

I have created a plugin (DLL) for AutoCAD and I'm loading it via the bundle xml. I'm having a problem getting it to find the icon associated with the new palette my plugin creates and displays. I get a "Could not find file" "Unhandled exception". The "icon" attribute of the ApplicationPackage element is set to "./Contents/Resources/SmallLaunch.ico" and it is indeed located there. However, the message indicates that it is looking in the users' "Document" folder.  If I place a copy of the icon there, then the application loads and the icon shows up. I'm guessing I have something awry in my bundle xml.  Has anyone ever seen (and fixed) this before?

Here's the exception:

IconMissing.jpg

Here's the xml:

<ApplicationPackage SchemaVersion="1.0" ProductType="Application" Name="wood. ISO Control Application" AppVersion="0.1.0.1" Description="wood. ISO Control Application" Author="Guy Dow" Icon="./Contents/Resources/SmallLaunch.ico">
 <CompanyDetails Name="wood." Phone=" " Url="" Email=""/>
<Components>
 <RuntimeRequirements SupportPath="./Contents" Platform="AutoCAD|AutoCAD*" OS="Win64" SeriesMin="R22.0" SeriesMax="R22.0"/>
<ComponentEntry AppName="wood. ISO Control Application" ModuleName="./Contents/Palette_Grid_Testing.dll" AppDescription="wood. ISO Control Application" LoadOnCommandInvocation="True" LoadOnRequest="False" LoadOnAutoCADStartup="False">
<Commands GroupName="Commands">
 <Command Local="ISOCONTROL" Global="ISOCONTROL"/>
 </Commands>
 </ComponentEntry>
 <ComponentEntry AppName="wood. ISO Control Application" ModuleName=""/>
 </Components>
 </ApplicationPackage>
0 Likes
Accepted solutions (1)
372 Views
2 Replies
Replies (2)
Message 2 of 3

BlackBox_
Advisor
Advisor

What happens when you change your RuntimeRequirements to SupportPath="./Contents/Resources"?


"How we think determines what we do, and what we do determines what we get."

Sincpac C3D ~ Autodesk Exchange Apps

Message 3 of 3

guy.dow
Contributor
Contributor
Accepted solution

Hey BlackBox. Thanks for the reply. I had tried that, but to no avail.  I finally went back into the code and discovered that my custom palette wasn't always reaching the method that set that icon variable.  Redid it this afternoon, recompiled, and everything seems to be running ok now.  Also noticed that my icon was 256x256 (or 255??)... everything I read said to keep it at 32x32. So, I also downsized that.  So, who knows, ha...  I hate to mark anything as the answer, since I'm really not 100% sure of what fixed it.  My poor programming skills most likely caused it!  Anyway, thanks for the interest.

Guy

0 Likes