.NET

Reply
Active Contributor
48 Posts
1 Kudo
Registered: ‎11-28-2012
Post 1 of 3
Accepted Solution

HelpFile in PackageContents.xml

486 Views, 2 Replies
03-20-2013 02:38 AM

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?

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.

 

ADN Support Specialist
352 Posts
27 Kudos
Registered: ‎07-24-2007
Post 2 of 3

Re: HelpFile in PackageContents.xml

03-25-2013 09:45 AM in reply to: Fredrik.Larsen

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

Developer Technical Services

Autodesk Developer Network


Distinguished Mentor
787 Posts
80 Kudos
Registered: ‎02-25-2013
Post 3 of 3

Re: HelpFile in PackageContents.xml

03-26-2013 07:30 PM 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]



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security


AutoCAD® 2014, and Civil 3D® 2014 Certified Professional ~ Autodesk® Authorized Developer

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!