CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 4911

CAD tip CAD tip # 1232:

   
Question CAD 
 %  platform  category 
Q - question

How to get the hyperlink value (address) from a selected entity?

A - answer To get the hyperlink from a selected drawing entity use the following function:
(assoc -3 (entget (car (entsel)) (list "PE_URL")))
function returns nil if there is no linked address, or the linked address in the following format:
(-3 ("PE_URL" (1000 . "http://www.cadforum.cz")))
or
(-3 ("PE_URL" (1000 . "http://www.cadforum.cz") (1002 . "{") 
(1000 . "http://www.cadforum.cz") (1002 . "{") (1071 . 1) (1002 . "}") (1002 . 
"}")))
ACAD2000ACAD2005ADTMap
100% *  CAD 
13.4.2001    7272×  

See also:
Tip 11757:How to change blocks properties ex-post: annotative, allow exploding, scale uniformly
Tip 10301:How to export PDF with hyperlinks from AutoCAD?
Tip 6881:List all hyperlinks in your DWG drawing.
Tip 6776:How to add a comment to a drawing object?
Tip 6495:AutoCAD does not show hyperlinks of my drawing objects.


Back   All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info


Please use these tips at your own risk.
CAD Studio is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist