.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HelpFile in PackageContents.xml

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Fredrik.Larsen
1172 Views, 2 Replies

HelpFile in PackageContents.xml

Hi

 

I have created a bundle for my application. The .cuix file is loaded so i see my application in the ribbon, but the application is not loaded until invokation:

LoadOnAutoCADStartup="false"
LoadOnCommandInvocation="True"

 

The problem I have is with the help file. I have added this to the PackageContents.xml: HelpFile="./Contents/Readme.pdf"

 

When hoovering the mouse over my buttons in the ribbon (before I have pushed any of them) and pressing F1 AutoCAD opens either the AutoCAD help or the adobe website

 

When hoovering the mouse over my buttons in the ribbon (after I have pushed any of them) and pressing F1 AutoCAD opens either the AutoCAD help or my help file.

 

Either way it seems to be inconsistent. Since it opens my help file some of the times I know it finds my file, but why does it not work every time?

2 REPLIES 2
Message 2 of 3

I'd start by pointing out that PDF files aren't really what AutoCAD is expecting to use for a help file. HTML files are best. If you use HTML files then you can set command specific help tags by using HTML anchors in your HTML help and then referencing them in your <Command> element... e,g,

 

      <Commands GroupName="MY_GROUPTEST">
        <Command Local="TEST" LocalDeu="DasTest" LocalEsp"DeTesty" Global="TEST" Description="Launches test palette" HelpTopic="#Helptopic" />
      </Commands>

 

Once you do this, when you press F1 for a command you will be taken directly to the command help specifically.

 




Fenton Webb
AutoCAD Engineering
Autodesk

Message 3 of 3
BlackBox_
in reply to: Fredrik.Larsen

While it doesn't hurt anything, there's no need to specify LoadOnAutoCADStartup="False", as this snippet explains from a well written Autoloader White Paper:

 

[quote]

LoadOnCommandInvocation – Load only when one of your custom commands is invoked. When using this Load Reason, you must include a ‘Commands’ element.  Also, if LoadOnCommandInvocation is enabled, then LoadReasons LoadOnAutoCADStartup  and LoadOnAppearance are assumed to be disabled unless explicitly enabled. Only applies to ARX and .NET modules.

[/quote]



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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost