- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm currently working on a project to extract various types of relational data from PID. I'm able to get the "ControlValve" table, and iterate over them. But i'm struggling to figure out how to go from PnPRow to "Asset".
Asset allows me to go through the various linesegments and associated assets. Any help would be greatly appreciated.
Dim pPnPDb As PnPDatabase = m_dlm.GetPnPDatabase()
Dim table As PnPTable = pPnPDb.Tables("ControlValve")
Dim rows As PnPRow() = table.Select()
Dim r As PnPRow, MPL As New ObservableCollection(Of String)
For Each r In rows
Dim properties As List(Of KeyValuePair(Of String, String))
properties = m_dlm.GetAllProperties(r.RowId, True)
For Each oID In oAsset.LineSegmentIds
Do Stuff....
Next
Next
Solved! Go to Solution.