Hello,
I was wondering if gINT saves field unit definitions in either the .glb or .gpj files. I am not referring to the list/table of allowable units. Rather, the unit for each applicable field as defined in the "Field Properties" window. If not in either .glb or .gpj then where? I open both with MS Access but can't find anything.
Many thanks!
They are dao properties of the field in the database, for you that is in the project. This data can only be accessed programmatically. You can see them by running the Datgel Find Set Property Tool, which is delivered as part of multiple Datgel gINT Add-In products: docs.datgel.com/.../find-or-set-property-tool
Phil WadeDatgelBentley Channel Partner and Developer PartnerE: phil.wade@datgel.com | T: +61 2 8202 8600 & +65 6631 9780
Get the most out of gINT with Datgel Tools.
Hello Phil,
Thanks for the reply. I was able to access the DAO properties of each field in each table. However, I have not yet been able to extract the units of each field as initially inquired by my colleague above.
For example, looking at the 'ELVATION' field in the 'POINT' table I see 35 properties. When I print the "property_name: property_value" pairs I do not see 'ft' anywhere. I thought the property "gintUnits" was going to contain the answer but that one comes up empty on my end,
Could you provide a little bit more help here?
Thanks!
The property name is gintUnits
Start: 17/06/2022 5:14:15 PMField Property: gintUnits where property value like *, Table like POINT, Field like ELEVATION
Table: POINT Field: Elevation Prop: gintUnits Value: m
Start: 17/06/2022 5:14:15 PM Finish: 17/06/2022 5:14:15 PM Duration: 0 s
In C#
using Microsoft.Office.Interop.Access.Dao;
Database DaoDb;
DBEngine DaoDbe = new DBEngine();
DaoDbe = new DBEngine();
DaoDb = DaoDbe.OpenDatabase(filePath);
string unit = DaoDb.TableDefs["POINT"].Fields["Elevation"].Properties["gintUnits"].Value;