<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Hyperlinks in attribute values and tables in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3460856#M55564</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;Great thanks adam. I've been trying however no luck though, is my hyperlink a string value?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;string url = "&lt;SPAN&gt;%&amp;lt;\AcVar \href "&lt;/SPAN&gt;&lt;A href="http://www.autodesk.com/##www.autodesk.com#0" rel="nofollow" target="_blank"&gt;http://www.autodesk.com##www.autodesk.com#0&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;%"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or is there another way to do this. The first set of quotes encompassing the link tends to throw things off.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Vince&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Maybe like this:&lt;/P&gt;
&lt;PRE&gt;string url = "%&amp;lt;\\AcVar \\href \"&lt;A href="http://www.autodesk.com##www.autodesk.com#0" target="_blank"&gt;http://www.autodesk.com##www.autodesk.com#0&lt;/A&gt;\"&amp;gt;%";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2012 04:30:56 GMT</pubDate>
    <dc:creator>Alexander.Rivilis</dc:creator>
    <dc:date>2012-05-17T04:30:56Z</dc:date>
    <item>
      <title>Hyperlinks in attribute values and tables</title>
      <link>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3458580#M55561</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been going through older posts with not too much luck. Using C# (VS2010, Acad2012) i've created a block, imported it, given it the required attibute tags and values, and then created an array out of this block for a total of "x" identical blocks for our purposes. As these blocks are desigend to represent real-world products, is there any way that one of my attribute values can reflect a hyperlink to the manufacturers datasheet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So essentially&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Product Info &lt;A href="http://www.google.ca/testproduct.pdf" target="_blank"&gt;http://www.google.ca/testproduct.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, one of my functions lists all of the blocks in the current drawing and tallys them up and drops them into a table where it reports the block name, details, and quantity. I would also like this block name to be a hyperlink as well...is this doable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*** Edted for spelling and code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;AttributeDefinition attDef15 = new AttributeDefinition(new Point3d(0d, 0d, 0d), productinfo, "Web Link", "", db.Textstyle);
                    attDef12.Invisible = true;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2012 20:11:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3458580#M55561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-15T20:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinks in attribute values and tables</title>
      <link>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3458930#M55562</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could add a hyperlink to each block reference. The same that you can achieve in the user interface using the HYPERLINK command. With that you can assign a URL to any entity (inc. a block reference) so that if the user hovers above the entity then information with the URL will come up, and if the user presses Ctrl+Click, then the browser comes up with the given URL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, what you asked should also be possible, i.e. to set an attribute reference's value to a URL, by including a field type called hypertext, e.g. like&lt;/P&gt;
&lt;P&gt;%&amp;lt;\AcVar \href "&lt;A href="http://www.autodesk.com##www.autodesk.com#0" target="_blank"&gt;http://www.autodesk.com##www.autodesk.com#0&lt;/A&gt;"&amp;gt;%&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There, again, the user could just click on the attribute text and get to the given website.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adam Nagy&lt;/P&gt;
&lt;P&gt;Autodesk Developer Network&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2012 02:04:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3458930#M55562</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2012-05-16T02:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinks in attribute values and tables</title>
      <link>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3459448#M55563</link>
      <description>&lt;P&gt;Great thanks adam. I've been trying however no luck though, is my hyperlink a string value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;string url = "&lt;SPAN&gt;%&amp;lt;\AcVar \href "&lt;/SPAN&gt;&lt;A href="http://www.autodesk.com/##www.autodesk.com#0" rel="nofollow" target="_blank"&gt;http://www.autodesk.com##www.autodesk.com#0&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;%"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or is there another way to do this. The first set of quotes encompassing the link tends to throw things off.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Vince&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2012 12:20:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3459448#M55563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-16T12:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinks in attribute values and tables</title>
      <link>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3460856#M55564</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;Great thanks adam. I've been trying however no luck though, is my hyperlink a string value?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;string url = "&lt;SPAN&gt;%&amp;lt;\AcVar \href "&lt;/SPAN&gt;&lt;A href="http://www.autodesk.com/##www.autodesk.com#0" rel="nofollow" target="_blank"&gt;http://www.autodesk.com##www.autodesk.com#0&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;%"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or is there another way to do this. The first set of quotes encompassing the link tends to throw things off.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Vince&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Maybe like this:&lt;/P&gt;
&lt;PRE&gt;string url = "%&amp;lt;\\AcVar \\href \"&lt;A href="http://www.autodesk.com##www.autodesk.com#0" target="_blank"&gt;http://www.autodesk.com##www.autodesk.com#0&lt;/A&gt;\"&amp;gt;%";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 04:30:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3460856#M55564</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-05-17T04:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinks in attribute values and tables</title>
      <link>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3461218#M55565</link>
      <description>&lt;P&gt;Thanks Alexander. When i do this, the URL shows up in my properties window but is not clickable...is this normal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 12:16:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3461218#M55565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-17T12:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinks in attribute values and tables</title>
      <link>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3461228#M55566</link>
      <description>&lt;P&gt;What about Ctrl+Left Mouse Button click on attribute in drawing?&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 12:30:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3461228#M55566</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-05-17T12:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinks in attribute values and tables</title>
      <link>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3461234#M55567</link>
      <description>&lt;P&gt;That doesn't seem to be working...It seems as though the hyperlink isn't being treated any differently than any other attribute. I can click it, select it, etc....but it doens't behave as a hyperlink, just as a standard attribute.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 12:51:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3461234#M55567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-17T12:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinks in attribute values and tables</title>
      <link>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3461860#M55568</link>
      <description>&lt;P&gt;Try the attached.&amp;nbsp; It needs to be inserted into some drawing.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 16:48:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3461860#M55568</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2012-05-17T16:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinks in attribute values and tables</title>
      <link>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3461888#M55569</link>
      <description>&lt;P&gt;Thanks fieldguy...so that does work...but i think i'm just explaining this badly...What i'm trying to do is get the attribute value that shows up in the property window to be clickable. I know how to create hyperlinks in the drawing itself, but is it possible to make an attribute value a hyperlink? So that way if i click a filter for instance, the model number, size, etc, all pop up as attributes in the properties window, and then i have a hyperlink there that links directly to the manufacturers datasheet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 16:57:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/hyperlinks-in-attribute-values-and-tables/m-p/3461888#M55569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-17T16:57:39Z</dc:date>
    </item>
  </channel>
</rss>

