Skip to content

Get the unit of measure associated with an iModel (dgn) #7507

Answered by ColinKerr
rhaines57 asked this question in Q&A
Discussion options

You must be logged in to vote

Each property definition (unique PropertyInfo) defines a KindOfQuantity and that KindOfQuantity defines the persistence unit and the active format. The format defines the presentation unit and attributes to control how the converted value should be converted to string.

If you are pulling 14 million individual property values there are likely only a few unique property definitions that describe those 14 million values. The ratio will depend on the data you are selecting.

You can identify unique property infos by combining the PropertyInfo.name and PropertyInfo.classInfo.name. Within one iModel the combination of PropertyInfo.classInfo.name and PropertyInfo.name will be unique.

That said yo…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@rhaines57
Comment options

@grigasp
Comment options

grigasp Jan 6, 2025
Collaborator

@rhaines57
Comment options

@ColinKerr
Comment options

Answer selected by rhaines57
@rhaines57
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants