Command that displays popup for Reference material text/Notes

Command that displays popup for Reference material text/Notes

Kyle.Pederson
Advocate Advocate
801 Views
4 Replies
Message 1 of 5

Command that displays popup for Reference material text/Notes

Kyle.Pederson
Advocate
Advocate

I'm looking to create a Ribbon command that when clicked will display some reference material particular to our company. Like Company Branch codes for referencing. Currently i just print it off but would like something that would be inside AutoCAD if possible.

 

All I'm looking for is when you click or type in command name a screen pops open with notes or reference material.

 

Thanks in Advance,

0 Likes
Accepted solutions (1)
802 Views
4 Replies
Replies (4)
Message 2 of 5

CodeDing
Advisor
Advisor

@Kyle.Pederson ,

 

How are you storing this 'material'? PDF? Web page? word doc?

 

It took me FOREVER to find a solution that worked DIRECTLY in the macro command (and allowed for spaces in the path)..

Here's an example that I currently use to open a file location directly from the marco. This should work to perhaps open a PDF or some other document also.

 

 

^C^C(command "_.HYPERLINKOPEN" "c:/my folder/my sub folder" "");

 

 

Best,

~DD

0 Likes
Message 3 of 5

Kyle.Pederson
Advocate
Advocate
Accepted solution

Hey @CodeDing 

 

**Correction - It does work, but not in the Tool palette section where i first threw it at**

 

The File path i have is :  U:\Excel\Branch Code.pdf

 

when i enter it in the command below i Get "Hyperlink destination cannot be found"

 

Below is how I've entered it, tried once with the ".pdf" and below with out and still the same issue.

 

 

^C^C(command "_.HYPERLINKOPEN" "U:/Excel/Branch Code" "");

 

Any idea what I'm doing wrong?

 

 

0 Likes
Message 4 of 5

CodeDing
Advisor
Advisor

@Kyle.Pederson ,

 

No idea. It works for me..

Add a command by drag / drop onto palette (I renamed mine to 'Open PDF'):

image.png

...Edit properties, and for command string I used this:

^C^C(command "_.HYPERLINKOPEN" "c:/users/myName/desktop/myFileName.pdf" "");

image.png

 ...Works just fine.

 

0 Likes
Message 5 of 5

Sea-Haven
Mentor
Mentor

You don't have to use a hyperlink if its simple text can use start "notepad" filename or another program like word or pdf via adobe acrobat.

0 Likes