Message 1 of 17
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Got another one for you @elliott.rosenfeld. 🙂
I have a model with three bookmarks in it. When I run the code below.....
var doc = app.ActiveDocument();
var varBM = doc.Bookmarks;
for (x in varBM) {
print (varBM[x]);
}
...it returns this at the debug window.
adsk::js::Bookmark(name = "") adsk::js::Bookmark(name = "") adsk::js::Bookmark(name = "") Script evaluation: 0.002 seconds
Which says to me it's not recognizing the names of the bookmarks and returning an empty value? And what's the deal with "adsk::js::"? Is IW / JS just being polite with its error messages?!?
*heads off to scour the IW JS documentation and inner-webs for clues*
Matt Wunch
Revit Subject Matter Expert/sUAS Pilot
Twitter | LinkedIn
AU2017 - Code Blue Dr Revit - How to Resuscitate Corrupt Revit Models
Was this answer helpful? If so, please click the ACCEPT AS SOLUTION or the KUDO button.
Solved! Go to Solution.