Author Topic: Read HyperLink  (Read 1744 times)

0 Members and 1 Guest are viewing this topic.

feesa

  • Guest
Read HyperLink
« on: April 27, 2017, 08:06:10 AM »
Hi,
Can anyone provide a sample code in .net how to read the Hyperlink Text.

Thanks Regards

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2138
  • class keyThumper<T>:ILazy<T>
Re: Read HyperLink
« Reply #1 on: April 27, 2017, 08:46:01 AM »

I haven't tried, but

if hlink is type HyperLink

what is  attribute  hlink.DisplayString value ?

regards,
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2138
  • class keyThumper<T>:ILazy<T>
Re: Read HyperLink
« Reply #2 on: April 27, 2017, 08:55:36 AM »
ref :

Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

feesa

  • Guest
Re: Read HyperLink
« Reply #3 on: April 27, 2017, 09:40:37 AM »
Since I am a Learner,

Could pls provide a code how to get it through ObjectID.

Thanks

Keith Brown

  • Swamp Rat
  • Posts: 601
Re: Read HyperLink
« Reply #4 on: April 27, 2017, 11:09:33 AM »
As a learner you should learn that 9 times out of 10 google will have the answer.  I simply googled Autocad.Net and hyperlink and the first thing returned was the link below.  It will show you how to place a hyperlink on an entity.  Once you have obtained this knowledge you should be able to get the hyperlink on an entity.


http://adndevblog.typepad.com/autocad/2012/05/how-to-create-a-hyperlink-on-an-entity.html
Keith Brown | AutoCAD MEP Blog | RSS Feed
AutoCAD MEP 2014 / Revit MEP 2014 / EastCoast CAD/CAM addon / Visual Studio 2013

feesa

  • Guest
Re: Read HyperLink
« Reply #5 on: April 28, 2017, 05:18:51 AM »
Thanks