Hi Matt,
Ok, so i think i have found a solution, thanks to some smart colleagues who looked into this.
While I wouldn't recommend this approach as a consistent workflow, it may work for your use case as a quick fix.
Here's a (rough) script that will update the tooltip on the Model Builder Roads datasource, which like other Model Builder data sources, you cannot currently configure directly in the data sources panel. This will keep your tooltip for OSM/Model Builder data sources out of the properties palette. You can play around with this script to update the tooltip for other Model Builder data sources, like buildings.
Here’s some brutally simple JavaScript that will update the tooltip on the “roads” datasource:
var db = app.ActiveModelDb;
var tableName = "DATA_SOURCES";
var fdoFilter = "NAME=roads";
var table = db.Table(tableName);
//var count = table.QueryRowCount(fdoFilter);
//print("Datasource count: " + count)
table.StartQuery(fdoFilter);
var read;
var writeRow = table.GetWriteRow();
while (read = table.Next()) {
writeRow.TOOLTIP = "Your fancy tooltip HTML goes here.";
table.UpdateFeature(writeRow, read.ID);
writeRow.Invalidate();
}
writeRow = null;
table.EndQuery();
Let me know if you have any questions!
Best,
Elliott
Principal Specialist, Infrastructure