Quantcast
Channel: OpenPlant | AutoPLANT
Viewing all articles
Browse latest Browse all 12277

Wiki Page: How to Add Data from External Database in OpenPlant Isometrics Manager backing sheet.

$
0
0
Applies To Product(s): OpenPlant Isometrics Manager Version(s): 08.11.09.XXX (SS5) | 08.11.11.XX (SS6) Environment: Windows 7/8.1/10 64 bit Area: Settings/Attributes Subarea: DBQuery Original Author: Abhijit Bute, Bentley Product Advantage Group Background In general, the majority of data for Isometric output is gathered from the Piping table. However, situations can arise where data from external database could be valuable for placement on Iso's. The following illustrated queries demonstrate how to pull a field from the external database into Isometric backing sheet. Steps To Accomplish Create New (Database) Excel Sheet Add Data. Create new excel file (say User.xlsx ) and entry as per below screen shot. Save file in appropriate location. Edit Textnode.txt file Add new database entry in textnodes.txt file. exdsn=Driver={Microsoft Excel Driver (*.xls)};Dbq=C:\User.xlsx; Add following query to get DRAWNBY, CHEKEDBY,APPROVEDBY values from database. DRAWNBY=DBQUERY($(exdsn), select INITIALS from [Sheet1$] where NAME='$(USERNAME)')Z CHECKEDBY=DBQUERY($(exdsn), select CHECKED from [Sheet1$] where NAME='$(USERNAME)') APPROVEDBY = DBQUERY($(exdsn), select APPROVED from [Sheet1$] where NAME='$(USERNAME)') Refer below image Save textnodes.txt file. Launch OpenPlant Isometrics Manager and verify result. NOTE: In case the column queried from the Excel sheet contains different data types like texts as well as numbers Convert all the numbers to text format. Steps To Accomplish: Select the column as shown leaving the merged cells Go to Data --> Text to Columns Select Delimited Select Tab Select Text Click Finish Make sure all the fields with just numbers show up as text now See Also Comments or Corrections? Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this Comments or Corrections?" section. THANK YOU!

Viewing all articles
Browse latest Browse all 12277

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>