Autolisp -HYPERLINK Syntax Help

Autolisp -HYPERLINK Syntax Help

Anonymous
Not applicable
492 Views
1 Reply
Message 1 of 2

Autolisp -HYPERLINK Syntax Help

Anonymous
Not applicable
Hi,
I'm trying to generate hyperlinks to map objects for a drawing which I am going to export to dxf and link to a document to do php queries off of. I can't seem to get the -HYPERLINK syntax correct though.
This is what I am using:
(command "-HYPERLINK" "i" "o" inspt "" "" "" url acct)
The inspt is the insertion point in x,y,z form and is being read from a database. The url is the query string I'm using and the acct is just the displayed value I was trying to put in.
I cannot get this to work correct, I keep ending up with the url in the description and the description being blank. I can put "url" after the insertion point twice and it will put the url in but it comes up with a # sign in front of it and doesn't follow correctly.
Can anyone tell me what I am doing wrong or suggest another way to do this.
Thanks in advance.
0 Likes
493 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
The hyperlinks are stored in xdata. If you're attaching it to an entity you can do something similar to what I have below.

(if (null (tblsearch "appid" "PE_URL"))(regapp "PE_URL"))
(setq hyper_list (list (list -3 (cons "PE_URL" (list
(cons 1000 hyper_text) ; URL
(cons 1002 "{")(cons 1000 tool_tip)(cons 1002 "}") ; Tool Tip
))))
)
(entmod (append (entget ename) hyper_list))
0 Likes