
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am still a LISP novice and stuck on making the following work:
(defun c:link (/ ent rec fvals ATAH_HyperlinkObject)
(setq ATAH_HyperlinkObject (ssget "X"))
(if
(member (vla-get-objectname ATAH_HyperlinkObject) '("AcDbPolyline" "AcDbLWPolyline" "AcDb2dPolyline" "AcDbLine" "AcDbArc"))
(repeat (progn
(setq ent (cons(vlax-ename->vla-object ATAH_HyperlinkObject)
rec (ade_odgetrecord ent "Rockville_Plats" 0)
fvals (ade_odgetrecfield rec "document_L")))
(vla-Add (vla-get-Hyperlinks ATAH_HyperlinkObject))
(vl-princ-to-string fvals))
(princ))
I keep getting a bad argument on VLA-OBJECT <Selection Set: x>
The set size keeps moving around (~300 items less than the total in the dataset), too, so not only am I misplacing my repeat/cons stuff, I think I also need additional code to handle the portions of my dataset that contain null values...?
The shapefile I am working with is attached.
I appreciate any thoughts and assistance.
Best,
Dan
Solved! Go to Solution.