AutoCAD 2007/2008/2009

Reply
*GhysBoy
Message 1 of 5 (300 Views)

hyperlink on a polilyne

300 Views, 4 Replies
01-24-2007 12:50 PM
Hi all,

I have a drawing and database. In my database i have 2 row. first is a code
and the second is a hyperlink. In my drawing i have the same code in table
of object data associate to a polyline. A link run properly between the
database and drawing. It is possible to take the hyperlink in the database
and recreate to to polyline associate too.

Thanks for the way you give to my

Ghyslain Baril
*Laurie Comerford
Message 2 of 5 (300 Views)

Re: hyperlink on a polilyne

01-25-2007 01:36 AM in reply to: *GhysBoy
Hi,

Yes, but if you have several, or more, to do, then you would be advised to
create a program to do it.

--

Laurie Comerford
CADApps
www.cadapps.com.au
www.civil3Dtools.com
"GhysBoy" wrote in message
news:5462714@discussion.autodesk.com...
Hi all,

I have a drawing and database. In my database i have 2 row. first is a code
and the second is a hyperlink. In my drawing i have the same code in table
of object data associate to a polyline. A link run properly between the
database and drawing. It is possible to take the hyperlink in the database
and recreate to to polyline associate too.

Thanks for the way you give to my

Ghyslain Baril
*GhysBoy
Message 3 of 5 (300 Views)

Re: hyperlink on a polilyne

01-25-2007 05:07 AM in reply to: *GhysBoy
Did you a a exemple for do that... what kind of code.... it's a lisp, or vba




"Laurie Comerford" a écrit dans le message
de news:5463143@discussion.autodesk.com...
Hi,

Yes, but if you have several, or more, to do, then you would be advised to
create a program to do it.

--

Laurie Comerford
CADApps
www.cadapps.com.au
www.civil3Dtools.com
"GhysBoy" wrote in message
news:5462714@discussion.autodesk.com...
Hi all,

I have a drawing and database. In my database i have 2 row. first is a code
and the second is a hyperlink. In my drawing i have the same code in table
of object data associate to a polyline. A link run properly between the
database and drawing. It is possible to take the hyperlink in the database
and recreate to to polyline associate too.

Thanks for the way you give to my

Ghyslain Baril
*Laurie Comerford
Message 4 of 5 (300 Views)

Re: hyperlink on a polilyne

01-25-2007 01:55 PM in reply to: *GhysBoy
Hi,

I did it in VBA.

The code I used started from the Help files for VBA as shown below.

The URLDescription displays when you hover the mouse over the object
containing the hyperlink.

One thing I was unable to do was add a line break into the display. If you
discover that, I'd appreciate it.
--

Laurie Comerford
CADApps
www.cadapps.com.au
www.civil3Dtools.com
Sub Example_HyperLinks()
' This example creates a Circle object in model space and
' adds a new Hyperlink to its Hyperlink collection

Dim Hyperlinks As AcadHyperlinks
Dim Hyperlink As AcadHyperlink
Dim circleObj As AcadCircle
Dim centerPoint(0 To 2) As Double
Dim radius As Double
Dim HLList As String

' Define the Circle object
centerPoint(0) = 0: centerPoint(1) = 0: centerPoint(2) = 0
radius = 5#

' Create the Circle object in model space
Set circleObj = ThisDrawing.ModelSpace.AddCircle(centerPoint, radius)

ThisDrawing.Application.ZoomAll

' Get reference to the Circle's Hyperlinks collection
Set Hyperlinks = circleObj.Hyperlinks

' Add a new Hyperlink complete with all properties
Set Hyperlink = Hyperlinks.Add("AutoDesk")
Hyperlink.URL = "www.autodesk.com"
Hyperlink.URLDescription = "Autodesk Main Site"
Hyperlink.URLNamedLocation = "MY_LOCATION"

' Read and display a list of existing Hyperlinks and
' their properties for this object
For Each Hyperlink In Hyperlinks
HLList = HLList & "____________________________________" & vbCrLf
' Separator
HLList = HLList & "URL: " & Hyperlink.URL & vbCrLf
HLList = HLList & "URL Description: " & Hyperlink.URLDescription &
vbCrLf
HLList = HLList & "URL Named Location: " &
Hyperlink.URLNamedLocation & vbCrLf
Next

MsgBox "The circle has " & Hyperlinks.count & " Hyperlink: " & vbCrLf &
HLList
End Sub"GhysBoy" wrote in message
news:5463325@discussion.autodesk.com...
Did you a a exemple for do that... what kind of code.... it's a lisp, or vba




"Laurie Comerford" a écrit dans le message
de news:5463143@discussion.autodesk.com...
Hi,

Yes, but if you have several, or more, to do, then you would be advised to
create a program to do it.

--

Laurie Comerford
CADApps
www.cadapps.com.au
www.civil3Dtools.com
"GhysBoy" wrote in message
news:5462714@discussion.autodesk.com...
Hi all,

I have a drawing and database. In my database i have 2 row. first is a code
and the second is a hyperlink. In my drawing i have the same code in table
of object data associate to a polyline. A link run properly between the
database and drawing. It is possible to take the hyperlink in the database
and recreate to to polyline associate too.

Thanks for the way you give to my

Ghyslain Baril
Contributor
andy62
Posts: 21
Registered: ‎10-29-2007
Message 5 of 5 (298 Views)

Re: hyperlink on a polilyne

06-07-2010 05:50 AM in reply to: *Laurie Comerford

hi,

can anyone suggest .net code to add a new hyperlink to a polyline?

andrea

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!