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: 6012

CAD tip CAD tip # 13716:

   
Question CAD 
 %  platform  category 
Q - question

HYPERLIST - list of all used URLs.

A - answer List of all URLs attached as hyperlinks to the selected DWG objects in your AutoCAD drawing can be displayed by the following LISP function (defining a HYPERLIST command). Save it as a .LSP file, load it with APPLOAD and type the HYPERLIST command.

;List hyperlinks (URLs) (defun C:HYPERLIST (/ ss ent aurl www) (and (setq ss (ssget '((-3 ("PE_URL"))))) (foreach ent (vl-remove-if 'listp (mapcar 'cadr (ssnamex ss))) (setq aurl (cdadr (assoc -3 (entget ent '("PE_URL"))))) (if (= "" (setq www (cdr (assoc 1000 aurl)))) (print (cdr (assoc 1000 (reverse aurl)))) (print www) ) ) ) (princ) )
ACADACLTCivil3DMapPlant3DADT
100% *  CAD 
5.5.2023    21442×  

See also:
Tip 1232:How to get the hyperlink value (address) from a selected entity?


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:
Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info


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