Message 1 of 3
associated sheet set

Not applicable
05-09-2008
09:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I can not figure out how to find the associated sheet set for an active drawing. I am creating a VBA reactor to update/change sheet set properties, but I can not figure out how to find the associated sheet set with the file the user is working with.
Although I did find this lisp routine which works, I can not figure out how to 'translate' the 'namedobjdict' dictionary pointer to VBA. Actually most of it.
(defun c:getCurrentSheetSetPath (/ data)
(if
(and
(setq data (dictsearch (namedobjdict) "AcSheetSetData"))
(setq data (member '(3 . "ShSetFileName") data))
(setq data (cdr (assoc 350 data)))
(setq data (entget data))
)
(cdr (assoc 1 data))
)
)
worst case, I imagine its possible to call the above lisp routine from VBA and get the returned value, but that is a very scrappy/temporary solution.
thanks in advance, binaryouth
Although I did find this lisp routine which works, I can not figure out how to 'translate' the 'namedobjdict' dictionary pointer to VBA. Actually most of it.
(defun c:getCurrentSheetSetPath (/ data)
(if
(and
(setq data (dictsearch (namedobjdict) "AcSheetSetData"))
(setq data (member '(3 . "ShSetFileName") data))
(setq data (cdr (assoc 350 data)))
(setq data (entget data))
)
(cdr (assoc 1 data))
)
)
worst case, I imagine its possible to call the above lisp routine from VBA and get the returned value, but that is a very scrappy/temporary solution.
thanks in advance, binaryouth