Community
InfraWorks Forum
Welcome to Autodesk’s InfraWorks Forums. Share your knowledge, ask questions, and explore popular InfraWorks topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

View source feature on OSM

11 REPLIES 11
SOLVED
Reply
Message 1 of 12
Matt__W
1220 Views, 11 Replies

View source feature on OSM

Matt__W
Advisor
Advisor

Is this a new feature? Like new in the past few days? I don't recall seeing it on other, older models. I like it.  🙂

 

Just curious. Thanks!

 

  MattIW_OSM_Feature_View.png



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.

0 Likes

View source feature on OSM

Is this a new feature? Like new in the past few days? I don't recall seeing it on other, older models. I like it.  🙂

 

Just curious. Thanks!

 

  MattIW_OSM_Feature_View.png



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.

11 REPLIES 11
Message 2 of 12
elliott.rosenfeld
in reply to: Matt__W

elliott.rosenfeld
Autodesk
Autodesk

It is a new feature! Although I cannot remember if it is included in the 2016.3 release, or is in a Sandbox build at the moment.. What version of InfraWorks 360 are you using? 

 

The geniuses who built the Model Builder are responsible for that nifty addition. It's basically just a default feature tooltip for features populated by OSM, using scripts to populate the link to the OSM data source. You could theoretically do this for a variety of data sources on your own, including a Show in Google Maps option.

 

Thanks for the feedback, ill pass along your feedback to the ones responsible.

 

Best,

Elliott


Principal Specialist, Infrastructure
0 Likes

It is a new feature! Although I cannot remember if it is included in the 2016.3 release, or is in a Sandbox build at the moment.. What version of InfraWorks 360 are you using? 

 

The geniuses who built the Model Builder are responsible for that nifty addition. It's basically just a default feature tooltip for features populated by OSM, using scripts to populate the link to the OSM data source. You could theoretically do this for a variety of data sources on your own, including a Show in Google Maps option.

 

Thanks for the feedback, ill pass along your feedback to the ones responsible.

 

Best,

Elliott


Principal Specialist, Infrastructure
Message 3 of 12
Matt__W
in reply to: elliott.rosenfeld

Matt__W
Advisor
Advisor

I'm running version 16.3.556.0. The reason I was asking is because I made a model last week and didn't notice that tooltip so I figured they added it behind the scenes.

 

I actually like it better than the Google Maps tooltip option because you don't get that expanded field box with all of the HTML code that you have to scroll past to get to other fields in the properties palette (see the last image on the page you linked to).

 

 Matt



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.

0 Likes

I'm running version 16.3.556.0. The reason I was asking is because I made a model last week and didn't notice that tooltip so I figured they added it behind the scenes.

 

I actually like it better than the Google Maps tooltip option because you don't get that expanded field box with all of the HTML code that you have to scroll past to get to other fields in the properties palette (see the last image on the page you linked to).

 

 Matt



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.

Message 4 of 12
elliott.rosenfeld
in reply to: Matt__W

elliott.rosenfeld
Autodesk
Autodesk
Accepted solution

Hi Matt,

 

Thanks for this info, I hadn't considered that this makes using the properties palette a bit simpler, compared to the Google Maps tooltip example. And actually, it turns out that tooltips can be specified at two different levels-- you can set a default tooltip for an entire datasource during configuration, or you can set specific tooltips on a per-feature basis using the Feature Tooltip editor.

 

For the OSM tooltips, we've moved the tooltips for those data sources from the feature level, to the datasource. You could actually do this on your own for your own data sources, but currently we don't expose configuration for any Model Builder data sources except for ground imagery, which isn't associated with tooltips.

 

Therefore, you can create a tooltip like the Google Maps script option in the Data Source Configuration dialog instead of the feature tooltip editor, and this would keep your properties palette uncluttered. If you have a sqlite viewer around, you can also find this in the TOOLTIP column of the DATA_SOURCES table.

 

data_source_tooltip.jpg

 

 

 

 

Thanks,

Elliott 


Principal Specialist, Infrastructure
0 Likes

Hi Matt,

 

Thanks for this info, I hadn't considered that this makes using the properties palette a bit simpler, compared to the Google Maps tooltip example. And actually, it turns out that tooltips can be specified at two different levels-- you can set a default tooltip for an entire datasource during configuration, or you can set specific tooltips on a per-feature basis using the Feature Tooltip editor.

 

For the OSM tooltips, we've moved the tooltips for those data sources from the feature level, to the datasource. You could actually do this on your own for your own data sources, but currently we don't expose configuration for any Model Builder data sources except for ground imagery, which isn't associated with tooltips.

 

Therefore, you can create a tooltip like the Google Maps script option in the Data Source Configuration dialog instead of the feature tooltip editor, and this would keep your properties palette uncluttered. If you have a sqlite viewer around, you can also find this in the TOOLTIP column of the DATA_SOURCES table.

 

data_source_tooltip.jpg

 

 

 

 

Thanks,

Elliott 


Principal Specialist, Infrastructure
Message 5 of 12
Matt__W
in reply to: elliott.rosenfeld

Matt__W
Advisor
Advisor

Thanks! I like the idea of adding the tooltip in the Data Source Configuration dialog box (never thought of doing it that way), but how do you handle buildings that are brought into the model using the Model Builder? When I double click on the data source I get the MISSING DATA SOURCE FILES message box. Is there a way around that? I'd like to do the same thing with the tooltip to those buildings so I can de-clutter the properties palette. Any thoughts or ideas on how to "fix" that?

 

Thanks again for your help.

 

  Matt



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.

0 Likes

Thanks! I like the idea of adding the tooltip in the Data Source Configuration dialog box (never thought of doing it that way), but how do you handle buildings that are brought into the model using the Model Builder? When I double click on the data source I get the MISSING DATA SOURCE FILES message box. Is there a way around that? I'd like to do the same thing with the tooltip to those buildings so I can de-clutter the properties palette. Any thoughts or ideas on how to "fix" that?

 

Thanks again for your help.

 

  Matt



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.

Message 6 of 12
Matt__W
in reply to: elliott.rosenfeld

Matt__W
Advisor
Advisor

Thanks! I like the idea of adding the tooltip in the Data Source Configuration dialog box (never thought of doing it that way), but how do you handle buildings that are brought into the model using the Model Builder? When I double click on the data source I get the MISSING DATA SOURCE FILES message box. Is there a way around that? I'd like to do the same thing with the tooltip to those buildings so I can de-clutter the properties palette. Any thoughts or ideas on how to "fix" that?

 

Thanks again for your help.

 

  Matt



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.

0 Likes

Thanks! I like the idea of adding the tooltip in the Data Source Configuration dialog box (never thought of doing it that way), but how do you handle buildings that are brought into the model using the Model Builder? When I double click on the data source I get the MISSING DATA SOURCE FILES message box. Is there a way around that? I'd like to do the same thing with the tooltip to those buildings so I can de-clutter the properties palette. Any thoughts or ideas on how to "fix" that?

 

Thanks again for your help.

 

  Matt



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.

Message 7 of 12
Matt__W
in reply to: Matt__W

Matt__W
Advisor
Advisor

Somehow my reply posted twice. *oops*



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.

0 Likes

Somehow my reply posted twice. *oops*



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.

Message 8 of 12
elliott.rosenfeld
in reply to: Matt__W

elliott.rosenfeld
Autodesk
Autodesk

No prob, happens to the best of us 🙂

 

As for the building data -- the Model Builder service does not currently expose the configuration for the buildings data source (OSM). I think you could likely download the building data directly from OSM for your model extent and then manually import and add the tooltip during configuration. I'll check with the Model Builder team to see if they have any other suggestions.

 

Thanks,

Elliott 


Principal Specialist, Infrastructure
0 Likes

No prob, happens to the best of us 🙂

 

As for the building data -- the Model Builder service does not currently expose the configuration for the buildings data source (OSM). I think you could likely download the building data directly from OSM for your model extent and then manually import and add the tooltip during configuration. I'll check with the Model Builder team to see if they have any other suggestions.

 

Thanks,

Elliott 


Principal Specialist, Infrastructure
Message 9 of 12
elliott.rosenfeld
in reply to: Matt__W

elliott.rosenfeld
Autodesk
Autodesk

Oh one more question -- why do you want to view the OSM data source for buildings? Are you not seeing the default tooltip, or are you looking to customize the tooltip?

 

OSM_buildings_tooltip.png

 

Thanks,

Elliott


Principal Specialist, Infrastructure
0 Likes

Oh one more question -- why do you want to view the OSM data source for buildings? Are you not seeing the default tooltip, or are you looking to customize the tooltip?

 

OSM_buildings_tooltip.png

 

Thanks,

Elliott


Principal Specialist, Infrastructure
Message 10 of 12
Matt__W
in reply to: elliott.rosenfeld

Matt__W
Advisor
Advisor

I'd like to customize the tooltip but not clutter up the properties palette with all of the HTML code.



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.

0 Likes

I'd like to customize the tooltip but not clutter up the properties palette with all of the HTML code.



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.

Message 11 of 12
elliott.rosenfeld
in reply to: Matt__W

elliott.rosenfeld
Autodesk
Autodesk

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
0 Likes

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
Message 12 of 12
Matt__W
in reply to: elliott.rosenfeld

Matt__W
Advisor
Advisor

Finally getting around to responding...

 

I haven't had a chance to try it yet but it "looks" like it'll work.  😉

 

Thanks again for your help.



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.

0 Likes

Finally getting around to responding...

 

I haven't had a chance to try it yet but it "looks" like it'll work.  😉

 

Thanks again for your help.



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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report